block: move more code to early-lookup.c
authorChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 12:55:27 +0000 (14:55 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Jun 2023 16:57:40 +0000 (10:57 -0600)
commit7cadcaf1d82618852745e7206fffa2c72c17ce4b
tree2d6fc480677c71ce91bb495f863f561f9239624c
parent702f3189e454b3c3c2f3c99dbf30acf41aab707c
block: move more code to early-lookup.c

blk_lookup_devt is only used by code in early-lookup.c, so move it
there.

printk_all_partitions and it's helper bdevt_str are only used by the
early init code in init/do_mounts.c, so they should go there as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230531125535.676098-17-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/early-lookup.c
block/genhd.c
include/linux/blkdev.h