From: Miklos Szeredi Date: Thu, 29 Nov 2007 00:22:03 +0000 (-0800) Subject: fuse: fix attribute caching after rename X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=08b633070ad5fa17a837428a601c32cf3db6aafd;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index dfc32dc97f7f..80d2f5292cf9 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);