Skip to content

Commit

Permalink
xfs: minimal conversion to errseq_t writeback error reporting
Browse files Browse the repository at this point in the history
Just check and advance the data errseq_t in struct file before
before returning from fsync on normal files. Internal filemap_*
callers are left as-is.

Reviewed-by: Darrick J. Wong <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
  • Loading branch information
jtlayton committed Jul 6, 2017
1 parent 6acec59 commit 1b18027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ xfs_file_fsync(

trace_xfs_file_fsync(ip);

error = filemap_write_and_wait_range(inode->i_mapping, start, end);
error = file_write_and_wait_range(file, start, end);
if (error)
return error;

Expand Down

0 comments on commit 1b18027

Please sign in to comment.