summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_file.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-07-06 13:02:30 +0200
committerJeff Layton <jlayton@redhat.com>2017-07-06 13:02:30 +0200
commit1b180274f5bfa0b8b05f7e55d9962f77f387be9c (patch)
tree885c062dd0b28007392647aecdd9c0b20f19a9f3 /fs/xfs/xfs_file.c
parentext4: use errseq_t based error handling for reporting data writeback errors (diff)
downloadlinux-1b180274f5bfa0b8b05f7e55d9962f77f387be9c.tar.xz
linux-1b180274f5bfa0b8b05f7e55d9962f77f387be9c.zip
xfs: minimal conversion to errseq_t writeback error reporting
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 <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r--fs/xfs/xfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 5fb5a0958a14..6600b264b0b6 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -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;