Commit 9a2eb24d authored by Miklos Szeredi's avatar Miklos Szeredi

fuse: only invalidate atime in direct read

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: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 802dc049
...@@ -1419,7 +1419,7 @@ static ssize_t __fuse_direct_read(struct fuse_io_priv *io, ...@@ -1419,7 +1419,7 @@ static ssize_t __fuse_direct_read(struct fuse_io_priv *io,
res = fuse_direct_io(io, iter, ppos, 0); res = fuse_direct_io(io, iter, ppos, 0);
fuse_invalidate_attr(inode); fuse_invalidate_atime(inode);
return res; return res;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment