diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-07-06 07:02:30 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2017-07-06 07:02:30 -0400 |
commit | 6acec592c6bc9a4c3136e46430e14767b07f9f1a (patch) | |
tree | 05443e39b44e721fdc8b8bdfd8a264cc13b2a042 /fs/ext4/fsync.c | |
parent | 383aa543c2f46f245d652c0e5c77390f07ece657 (diff) | |
download | linux-6acec592c6bc9a4c3136e46430e14767b07f9f1a.tar.gz linux-6acec592c6bc9a4c3136e46430e14767b07f9f1a.tar.bz2 linux-6acec592c6bc9a4c3136e46430e14767b07f9f1a.zip |
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 <jlayton@redhat.com>
Diffstat (limited to 'fs/ext4/fsync.c')
-rw-r--r-- | fs/ext4/fsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; /* |