diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2007-11-28 16:22:03 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-29 09:24:54 -0800 |
commit | 08b633070ad5fa17a837428a601c32cf3db6aafd (patch) | |
tree | 3aa400a5f3f70bfa99f871f9aa3b80610ebb0053 /fs | |
parent | fbee36b92abc965d3fc2862aa60fd0dfcf779d0b (diff) | |
download | kernel_samsung_espresso10-08b633070ad5fa17a837428a601c32cf3db6aafd.zip kernel_samsung_espresso10-08b633070ad5fa17a837428a601c32cf3db6aafd.tar.gz kernel_samsung_espresso10-08b633070ad5fa17a837428a601c32cf3db6aafd.tar.bz2 |
fuse: fix attribute caching after rename
Invalidate attributes on rename, since some filesystems may update
st_ctime. Reported by Szabolcs Szakacsits
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fuse/dir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index dfc32dc..80d2f52 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -657,6 +657,9 @@ static int fuse_rename(struct inode *olddir, struct dentry *oldent, err = req->out.h.error; fuse_put_request(fc, req); if (!err) { + /* ctime changes */ + fuse_invalidate_attr(oldent->d_inode); + fuse_invalidate_attr(olddir); if (olddir != newdir) fuse_invalidate_attr(newdir); |