[RHEL7,COMMIT] ms/xfs: minimal conversion to errseq_t writeback error reporting

Submitted by Konstantin Khorenko on June 9, 2018, 10:29 a.m.

Details

Message ID 201806091029.w59ATdpm024651@finist_ce7.work
State New
Series "ms/xfs: minimal conversion to errseq_t writeback error reporting"
Headers show

Commit Message

Konstantin Khorenko June 9, 2018, 10:29 a.m.
The commit is pushed to "branch-rh7-3.10.0-862.vz7.48.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.el7
------>
commit 8f37c65940b5cc540bcc85590952f968a0290a3d
Author: Vasily Averin <vvs@virtuozzo.com>
Date:   Sat Jun 9 13:29:39 2018 +0300

    ms/xfs: minimal conversion to errseq_t writeback error reporting
    
    mainline commit 1b18027 ("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>
    Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
 fs/xfs/xfs_file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 4452f9ad0320..d2feb4e2b40b 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -174,7 +174,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;