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 <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Miklos Szeredi 2007-05-23 13:57:54 -07:00 committed by Linus Torvalds
parent 889f784831
commit ead5f0b5fa

View File

@ -454,6 +454,7 @@ static const struct super_operations fuse_super_operations = {
.destroy_inode = fuse_destroy_inode, .destroy_inode = fuse_destroy_inode,
.read_inode = fuse_read_inode, .read_inode = fuse_read_inode,
.clear_inode = fuse_clear_inode, .clear_inode = fuse_clear_inode,
.drop_inode = generic_delete_inode,
.remount_fs = fuse_remount_fs, .remount_fs = fuse_remount_fs,
.put_super = fuse_put_super, .put_super = fuse_put_super,
.umount_begin = fuse_umount_begin, .umount_begin = fuse_umount_begin,