From: Jeff Layton Date: Thu, 6 Jul 2017 11:02:30 +0000 (-0400) Subject: ext4: use errseq_t based error handling for reporting data writeback errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6acec592c6bc9a4c3136e46430e14767b07f9f1a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ext4: use errseq_t based error handling for reporting data writeback errors Add a call to filemap_report_wb_err at the end of ext4_sync_file. This will ensure that we check and advance the errseq_t in the file, which allows us to track and report errors on all open fds when they occur. Signed-off-by: Jeff Layton --- diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c index 9d549608fd30..aae2c3971cef 100644 --- a/fs/ext4/fsync.c +++ b/fs/ext4/fsync.c @@ -124,7 +124,7 @@ int ext4_sync_file(struct file *file, loff_t start, loff_t end, int datasync) goto out; } - ret = filemap_write_and_wait_range(inode->i_mapping, start, end); + ret = file_write_and_wait_range(file, start, end); if (ret) return ret; /*