diff options
author | Christoph Hellwig <hch@lst.de> | 2021-10-19 08:25:26 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-22 16:36:55 +0200 |
commit | d39b0a2fae366793e707bbd576eea055b7e9db9f (patch) | |
tree | 97cb17028b1a5719f6f8f3525d71c20dd1a999dd /drivers/block/xen-blkback/xenbus.c | |
parent | block: remove __sync_blockdev (diff) | |
download | linux-d39b0a2fae366793e707bbd576eea055b7e9db9f.tar.xz linux-d39b0a2fae366793e707bbd576eea055b7e9db9f.zip |
xen-blkback: use sync_blockdev
Use sync_blockdev instead of opencoding it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20211019062530.2174626-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/xen-blkback/xenbus.c')
-rw-r--r-- | drivers/block/xen-blkback/xenbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index 33eba3df4dd9..914587aabca0 100644 --- a/drivers/block/xen-blkback/xenbus.c +++ b/drivers/block/xen-blkback/xenbus.c @@ -98,7 +98,7 @@ static void xen_update_blkif_status(struct xen_blkif *blkif) return; } - err = filemap_write_and_wait(blkif->vbd.bdev->bd_inode->i_mapping); + err = sync_blockdev(blkif->vbd.bdev); if (err) { xenbus_dev_error(blkif->be->dev, err, "block flush"); return; |