Skip to content

Commit 9a2eb24

Browse files
author
Miklos Szeredi
committed
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: Miklos Szeredi <mszeredi@redhat.com>
1 parent 802dc04 commit 9a2eb24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fuse/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ static ssize_t __fuse_direct_read(struct fuse_io_priv *io,
14191419

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

1422-
fuse_invalidate_attr(inode);
1422+
fuse_invalidate_atime(inode);
14231423

14241424
return res;
14251425
}

0 commit comments

Comments
 (0)