Skip to content

Commit

Permalink
ext4: use errseq_t based error handling for reporting data writeback …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
jtlayton committed Jul 6, 2017
1 parent 383aa54 commit 6acec59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/fsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/*
Expand Down

0 comments on commit 6acec59

Please sign in to comment.