Skip to content

Commit

Permalink
fuse: convert to errseq_t based error tracking for fsync
Browse files Browse the repository at this point in the history
Change to file_write_and_wait_range and
file_check_and_advance_wb_err

Signed-off-by: Jeff Layton <[email protected]>
  • Loading branch information
jtlayton committed Jul 31, 2017
1 parent 9326c9b commit 7e51fe1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,18 +457,18 @@ 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;

fuse_sync_writes(inode);

/*
* 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;

Expand Down

0 comments on commit 7e51fe1

Please sign in to comment.