summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-04-14 09:29:00 +0200
committerJens Axboe <axboe@kernel.dk>2020-04-20 19:32:59 +0200
commitd5f3178ec9ab8a3a71763310d260e1d2a047baf1 (patch)
tree1f730b33e00132280e1c4e92572211e8b57db510 /virt
parentblock: don't call invalidate_partition from blk_drop_partitions (diff)
downloadlinux-d5f3178ec9ab8a3a71763310d260e1d2a047baf1.tar.xz
linux-d5f3178ec9ab8a3a71763310d260e1d2a047baf1.zip
block: simplify block device syncing in bdev_del_partition
We just checked a little above that the block device for the partition im busy. That implies no file system is mounted, and thus the only thing in fsync_bdev that actually is used is sync_blockdev. Just call sync_blockdev directly. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions