xfs: minimal conversion to errseq_t writeback error reporting
authorJeff Layton <jlayton@redhat.com>
Thu, 6 Jul 2017 11:02:30 +0000 (07:02 -0400)
committerJeff Layton <jlayton@redhat.com>
Thu, 6 Jul 2017 11:02:30 +0000 (07:02 -0400)
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>
fs/xfs/xfs_file.c

index 5fb5a0958a1485db46a2f753446c11828ff1913e..6600b264b0b6970f5ba87ba2aa5d3b15c1967ea7 100644 (file)
@@ -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;