OSDN Git Service

block: simplify block device syncing in bdev_del_partition
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 07:29:00 +0000 (09:29 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2020 17:32:59 +0000 (11:32 -0600)
commitd5f3178ec9ab8a3a71763310d260e1d2a047baf1
tree1f730b33e00132280e1c4e92572211e8b57db510
parente669c1da03a9dde0e7d43852a5b6ade8312e8701
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>
block/partitions/core.c