]> err.no Git - linux-2.6/commit
fuse: refresh stale attributes in fuse_permission()
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 17 Oct 2007 06:31:02 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:04 +0000 (08:43 -0700)
commit244f6385c2891e366a7de5f6746ccc257efd8952
tree09d51e0f55d9e88dad48941cc0a63e0253306e47
parent074406fa6309ab8b0aca15496b16b3653e58c03d
fuse: refresh stale attributes in fuse_permission()

fuse_permission() didn't refresh inode attributes before using them, even if
the validity has already expired.

Thanks to Junjiro Okajima for spotting this.

Also remove some old code to unconditionally refresh the attributes on the
root inode.

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>
fs/fuse/dir.c
fs/fuse/file.c
fs/fuse/fuse_i.h