diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-07-25 10:50:41 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-09-06 19:56:44 +0200 |
commit | b74fceae734dbd45f79b93bd262b03c39f538413 (patch) | |
tree | d08ac9e6b538282aea183dccc269d17775a696f9 /fs/ceph | |
parent | 95569713afc0b53ded1bba67834e0be24529a8c9 (diff) | |
download | linux-b74fceae734dbd45f79b93bd262b03c39f538413.tar.bz2 |
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')
-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) dout("fsync %p%s\n", inode, datasync ? " datasync" : ""); - ret = filemap_write_and_wait_range(inode->i_mapping, start, end); + ret = file_write_and_wait_range(file, start, end); if (ret < 0) goto out; |