projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
383aa54
)
ext4: use errseq_t based error handling for reporting data writeback errors
author
Jeff Layton
<jlayton@redhat.com>
Thu, 6 Jul 2017 11:02:30 +0000
(07:02 -0400)
committer
Jeff Layton
<jlayton@redhat.com>
Thu, 6 Jul 2017 11:02:30 +0000
(07:02 -0400)
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>
fs/ext4/fsync.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/fsync.c
b/fs/ext4/fsync.c
index 9d549608fd30bb04466bf56ab5f71855a00af944..aae2c3971cef2dc70065f85431584b7feed8cb36 100644
(file)
--- 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 = file
map_write_and_wait_range(inode->i_mapping
, start, end);
+ ret = file
_write_and_wait_range(file
, start, end);
if (ret)
return ret;
/*