diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-07-22 15:27:43 +0200 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2017-08-01 01:12:25 +0200 |
commit | 7e51fe1dd180e525c9cb9dc613c524c83c130867 (patch) | |
tree | 9e5532729aae932c904decd18cba4c2919d12238 /fs/fuse | |
parent | mm: consolidate dax / non-dax checks for writeback (diff) | |
download | linux-7e51fe1dd180e525c9cb9dc613c524c83c130867.tar.xz linux-7e51fe1dd180e525c9cb9dc613c524c83c130867.zip |
fuse: convert to errseq_t based error tracking for fsync
Change to file_write_and_wait_range and
file_check_and_advance_wb_err
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 3ee4fdc3da9e..e2ffc499d106 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -457,7 +457,7 @@ int fuse_fsync_common(struct file *file, loff_t start, loff_t end, * wait for all outstanding writes, before sending the FSYNC * request. */ - err = filemap_write_and_wait_range(inode->i_mapping, start, end); + err = file_write_and_wait_range(file, start, end); if (err) goto out; @@ -465,10 +465,10 @@ int fuse_fsync_common(struct file *file, loff_t start, loff_t end, /* * Due to implementation of fuse writeback - * filemap_write_and_wait_range() does not catch errors. + * file_write_and_wait_range() does not catch errors. * We have to do this directly after fuse_sync_writes() */ - err = filemap_check_errors(file->f_mapping); + err = file_check_and_advance_wb_err(file); if (err) goto out; |