]> www.infradead.org Git - users/hch/block.git/commit
block: refactor blk_drop_partitions
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Mar 2021 13:35:10 +0000 (14:35 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 30 Mar 2021 05:44:40 +0000 (07:44 +0200)
commited26db706f4d02aba1ff3a4567dc7d492ab0192b
tree1b388a2c5dd48318d048d475723844fc9a35d3e4
parentf95c728c21d176dc8f972ba174c250873028d639
block: refactor blk_drop_partitions

Move the busy check and disk-wide sync into the only caller, so that
the remainder can be shared with del_gendisk.  Also pass the gendisk
instead of the bdev as that is all that is needed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk.h
block/genhd.c
block/partitions/core.c