From: Jeff Layton Date: Tue, 25 Jul 2017 14:50:41 +0000 (-0400) Subject: ceph: use errseq_t for writeback error reporting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b74fceae734dbd45f79b93bd262b03c39f538413;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: "Yan, Zheng" Signed-off-by: Ilya Dryomov --- 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;