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

Konstantin Khorenko khorenko at virtuozzo.com
Sat Jun 9 13:29:39 MSK 2018


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 at 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 at oracle.com>
    Reviewed-by: Christoph Hellwig <hch at lst.de>
    Signed-off-by: Jeff Layton <jlayton at redhat.com>
    Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
---
 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 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;
 


More information about the Devel mailing list