From: Jeff Layton <[email protected]>

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.

Signed-off-by: Jeff Layton <[email protected]>
---
 fs/xfs/xfs_file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.13.0

Reply via email to