diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2018-10-15 09:43:06 -0400 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-10-15 09:43:06 -0400 |
| commit | 9a2eb24d1a349f53e20f3d4503568551561eed23 (patch) | |
| tree | 16597f052f1790c94e390cacfd602919d6d77628 | |
| parent | 802dc0497be2b538ca4300704b45b59bffe29585 (diff) | |
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>
| -rw-r--r-- | fs/fuse/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index f5507198ea00..58dbc39fea63 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
| @@ -1419,7 +1419,7 @@ static ssize_t __fuse_direct_read(struct fuse_io_priv *io, | |||
| 1419 | 1419 | ||
| 1420 | res = fuse_direct_io(io, iter, ppos, 0); | 1420 | res = fuse_direct_io(io, iter, ppos, 0); |
| 1421 | 1421 | ||
| 1422 | fuse_invalidate_attr(inode); | 1422 | fuse_invalidate_atime(inode); |
| 1423 | 1423 | ||
| 1424 | return res; | 1424 | return res; |
| 1425 | } | 1425 | } |
