aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dir.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-09-09 16:10:38 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 17:03:47 -0400
commitb36c31ba95f0fe0a03c727300d9c4c54438a5636 (patch)
tree092a83bc7f351bdd66aafee0f59fddba982b4317 /fs/fuse/dir.c
parent45323fb76465a9576220c7427dbac7b1e7ad3caf (diff)
[PATCH] fuse: don't update file times
Don't change mtime/ctime/atime to local time on read/write. Rather invalidate file attributes, so next stat() will force a GETATTR call. Bug reported by Ben Grimm. Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/dir.c')
-rw-r--r--fs/fuse/dir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index cf5d1faed7af..9b43fd46aaad 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -552,6 +552,7 @@ static int fuse_readdir(struct file *file, void *dstbuf, filldir_t filldir)
552 filldir); 552 filldir);
553 553
554 __free_page(page); 554 __free_page(page);
555 fuse_invalidate_attr(inode); /* atime changed */
555 return err; 556 return err;
556} 557}
557 558
@@ -585,6 +586,7 @@ static char *read_link(struct dentry *dentry)
585 link[req->out.args[0].size] = '\0'; 586 link[req->out.args[0].size] = '\0';
586 out: 587 out:
587 fuse_put_request(fc, req); 588 fuse_put_request(fc, req);
589 fuse_invalidate_attr(inode); /* atime changed */
588 return link; 590 return link;
589} 591}
590 592