Skip to content

Commit

Permalink
fuse: only invalidate atime in direct read
Browse files Browse the repository at this point in the history
After sending a synchronous READ request from __fuse_direct_read() we only
need to invalidate atime; none of the other attributes should be changed by
a read().

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
  • Loading branch information
Miklos Szeredi committed Oct 15, 2018
1 parent 802dc04 commit 9a2eb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ static ssize_t __fuse_direct_read(struct fuse_io_priv *io,

res = fuse_direct_io(io, iter, ppos, 0);

fuse_invalidate_attr(inode);
fuse_invalidate_atime(inode);

return res;
}
Expand Down

0 comments on commit 9a2eb24

Please sign in to comment.