diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-07-25 10:50:41 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-09-06 13:56:44 -0400 |
commit | b74fceae734dbd45f79b93bd262b03c39f538413 (patch) | |
tree | d08ac9e6b538282aea183dccc269d17775a696f9 /fs/ceph/caps.c | |
parent | 95569713afc0b53ded1bba67834e0be24529a8c9 (diff) |
ceph: use errseq_t for writeback error reporting
Ensure that when writeback errors are marked that we report those to all
file descriptions that were open at the time of the error.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r-- | fs/ceph/caps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index b675c004f6a7..19b97b47b3c9 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c | |||
@@ -2113,7 +2113,7 @@ int ceph_fsync(struct file *file, loff_t start, loff_t end, int datasync) | |||
2113 | 2113 | ||
2114 | dout("fsync %p%s\n", inode, datasync ? " datasync" : ""); | 2114 | dout("fsync %p%s\n", inode, datasync ? " datasync" : ""); |
2115 | 2115 | ||
2116 | ret = filemap_write_and_wait_range(inode->i_mapping, start, end); | 2116 | ret = file_write_and_wait_range(file, start, end); |
2117 | if (ret < 0) | 2117 | if (ret < 0) |
2118 | goto out; | 2118 | goto out; |
2119 | 2119 | ||