[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <E1HozoB-0003qj-00@dorka.pomaz.szeredi.hu>
Date: Fri, 18 May 2007 12:35:39 +0200
From: Miklos Szeredi <miklos@...redi.hu>
To: akpm@...ux-foundation.org
CC: linux-kernel@...r.kernel.org
Subject: [patch 2/2] fuse: delete inode on drop
From: Miklos Szeredi <mszeredi@...e.cz>
When inode is dropped (no more references) delete it from cache.
There's not much point in keeping it cached, when a new lookup will
refresh the attributes anyway.
Signed-off-by: Miklos Szeredi <mszeredi@...e.cz>
---
Index: linux/fs/fuse/inode.c
===================================================================
--- linux.orig/fs/fuse/inode.c 2007-05-18 11:32:21.000000000 +0200
+++ linux/fs/fuse/inode.c 2007-05-18 11:47:36.000000000 +0200
@@ -470,6 +470,7 @@ static const struct super_operations fus
.destroy_inode = fuse_destroy_inode,
.read_inode = fuse_read_inode,
.clear_inode = fuse_clear_inode,
+ .drop_inode = generic_delete_inode,
.remount_fs = fuse_remount_fs,
.put_super = fuse_put_super,
.umount_begin = fuse_umount_begin,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists