block: split __blkdev_put
authorChristoph Hellwig <hch@lst.de>
Tue, 25 May 2021 06:12:58 +0000 (08:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Jun 2021 13:44:56 +0000 (07:44 -0600)
commitc8276b954d2dacbabe587c0421a9344529af5bad
tree3de1dcbc1cc6e11c05a9a08cfec60b3e1123463f
parente54069acac1a302c1adc26694963547f8b73c2b0
block: split __blkdev_put

Split __blkdev_put into one helper for the whole device, and one for
partitions as well as another shared helper for flushing the block
device inode mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20210525061301.2242282-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c