提交 7e51fe1d 编写于 作者: J Jeff Layton

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: NJeff Layton <jlayton@redhat.com>
上级 9326c9b2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册