[Ocfs2-tools-devel] [PATCH 2/3] libocfs2: Destroy io cache in io_close()

Sunil Mushran sunil.mushran at oracle.com
Fri Apr 10 17:22:01 PDT 2009


io_close() was not destroying the io cache.

Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
---
 libocfs2/unix_io.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libocfs2/unix_io.c b/libocfs2/unix_io.c
index ae78924..411c3e1 100644
--- a/libocfs2/unix_io.c
+++ b/libocfs2/unix_io.c
@@ -525,6 +525,8 @@ errcode_t io_close(io_channel *channel)
 {
 	errcode_t ret = 0;
 
+	io_destroy_cache(channel);
+
 	if (close(channel->io_fd) < 0)
 		ret = errno;
 
-- 
1.5.6.3




More information about the Ocfs2-tools-devel mailing list