[patch 2/2] fuse: delete inode on drop

From: Miklos Szeredi
Date: Fri May 18 2007 - 06:36:37 EST


From: Miklos Szeredi <mszeredi@xxxxxxx>

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@xxxxxxx>
---

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/