diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-07-06 13:02:28 +0200 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2017-07-06 13:02:28 +0200 |
commit | 372cf243ea9a36d88ff67ae44f4512f64a6bca81 (patch) | |
tree | 3cd8face4fdf9e6705e703520841d5d57beb89f2 /fs/block_dev.c | |
parent | dax: set errors in mapping when writeback fails (diff) | |
download | linux-372cf243ea9a36d88ff67ae44f4512f64a6bca81.tar.xz linux-372cf243ea9a36d88ff67ae44f4512f64a6bca81.zip |
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>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 4d62fe771587..bcb0be6e423a 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -624,7 +624,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; |