block: move adjusting bd_part_count out of __blkdev_get
authorChristoph Hellwig <hch@lst.de>
Tue, 25 May 2021 06:12:57 +0000 (08:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Jun 2021 13:44:56 +0000 (07:44 -0600)
commite54069acac1a302c1adc26694963547f8b73c2b0
tree0201945a043944c0e2bb51ad632c85cf868f1ab9
parenta8698707a1835be3abd12a3b28079a80999f8dee
block: move adjusting bd_part_count out of __blkdev_get

Keep in the callers and thus remove the for_part argument.  This mirrors
what is done on the blkdev_get side and slightly simplifies
blkdev_get_part as well.

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