[RHEL7,COMMIT] ms/block: convert to errseq_t based writeback error tracking

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

Details

Message ID 201806091029.w59ATclo024551@finist_ce7.work
State New
Series "ms/block: convert to errseq_t based writeback error tracking"
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 790ae1a883b4e5d6ba0e6fd18df28b8ef3b9e40e
Author: Vasily Averin <vvs@virtuozzo.com>
Date:   Sat Jun 9 13:29:38 2018 +0300

    ms/block: convert to errseq_t based writeback error tracking
    
    mainline commit 372cf24 ("block: convert to errseq_t based writeback error tracking")
    
    This is a very minimal conversion to errseq_t based error tracking
    for raw block device access. Just have it use the standard
    file_write_and_wait_range call.
    
    Note that there are internal callers that call sync_blockdev
    and the like that are not affected by this. They'll continue
    to use the AS_EIO/AS_ENOSPC flags for error reporting like
    they always have for now.
    
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Jeff Layton <jlayton@redhat.com>
    Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
 fs/block_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/block_dev.c b/fs/block_dev.c
index b361af218c22..033cdcc56f85 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -389,7 +389,7 @@  int blkdev_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
 	struct block_device *bdev = I_BDEV(bd_inode);
 	int error;
 	
-	error = filemap_write_and_wait_range(filp->f_mapping, start, end);
+	error = file_write_and_wait_range(filp, start, end);
 	if (error)
 		return error;