From: Miklos Szeredi Date: Wed, 23 May 2007 20:57:54 +0000 (-0700) Subject: fuse: delete inode on drop X-Git-Tag: v2.6.22-rc3~51 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ead5f0b5fa41dd3649a44bfc922d06641ff3dbcf;p=linux-2.6 fuse: delete inode on drop 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 78f7a1dc90..9804c0cdcb 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -454,6 +454,7 @@ static const struct super_operations fuse_super_operations = { .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,