summaryrefslogtreecommitdiffstats
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-07-22 09:27:43 -0400
committerJeff Layton <jlayton@redhat.com>2017-07-31 19:12:25 -0400
commit7e51fe1dd180e525c9cb9dc613c524c83c130867 (patch)
tree9e5532729aae932c904decd18cba4c2919d12238 /fs/fuse/file.c
parent9326c9b20dd813248280cca1e1d1c05e939dae15 (diff)
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/file.c')
-rw-r--r--fs/fuse/file.c6
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,
457 * wait for all outstanding writes, before sending the FSYNC 457 * wait for all outstanding writes, before sending the FSYNC
458 * request. 458 * request.
459 */ 459 */
460 err = filemap_write_and_wait_range(inode->i_mapping, start, end); 460 err = file_write_and_wait_range(file, start, end);
461 if (err) 461 if (err)
462 goto out; 462 goto out;
463 463
@@ -465,10 +465,10 @@ int fuse_fsync_common(struct file *file, loff_t start, loff_t end,
465 465
466 /* 466 /*
467 * Due to implementation of fuse writeback 467 * Due to implementation of fuse writeback
468 * filemap_write_and_wait_range() does not catch errors. 468 * file_write_and_wait_range() does not catch errors.
469 * We have to do this directly after fuse_sync_writes() 469 * We have to do this directly after fuse_sync_writes()
470 */ 470 */
471 err = filemap_check_errors(file->f_mapping); 471 err = file_check_and_advance_wb_err(file);
472 if (err) 472 if (err)
473 goto out; 473 goto out;
474 474