]> www.infradead.org Git - users/hch/block.git/commit
block: move adjusting bd_part_count out of __blkdev_get
authorChristoph Hellwig <hch@lst.de>
Wed, 3 Mar 2021 15:38:05 +0000 (16:38 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 May 2021 13:23:31 +0000 (15:23 +0200)
commit9153459bd7ecdc331a402d2b17d1dfb55a47af80
treee9ca5c58f15872c552cd4c7a3daff7c492d93c10
parent7ca71ad17d3c34b36b59d9f395f1d4692bc62384
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>
fs/block_dev.c