]> git.ipfire.org Git - people/ms/linux.git/commit - block/bdev.c
block: split __blkdev_get
authorChristoph Hellwig <hch@lst.de>
Tue, 25 May 2021 06:12:54 +0000 (08:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Jun 2021 13:43:32 +0000 (07:43 -0600)
commit362529d9280af4b08d2c25a4b39b8e5ae7658f9a
treea8b6f39af0f41096da217a51ec1a79c5dbcb45d8
parentda7ba72960ca2a9b968e47fcf414d16f3d4c0c42
block: split __blkdev_get

Split __blkdev_get into one helper for the whole device, and one for
opening partitions.  This removes the (bounded) recursion when opening
a partition.

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