Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=08b633070ad5fa17a837428a601c32cf3db6aafd
Commit:     08b633070ad5fa17a837428a601c32cf3db6aafd
Parent:     fbee36b92abc965d3fc2862aa60fd0dfcf779d0b
Author:     Miklos Szeredi <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 28 16:22:03 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Nov 29 09:24:54 2007 -0800

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to