]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9e0f08bda346a127043b39c2363698ae9f1b0d5
tree0201945a043944c0e2bb51ad632c85cf868f1ab9
parentb27c9b405796de0024bb79a3679aa8b31a95e6f2
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