init: refactor mount_root
authorChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 12:55:18 +0000 (14:55 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Jun 2023 16:55:20 +0000 (10:55 -0600)
commita6a41d39c2d91ff2543d31b6cc6070f3957e3aea
treef7908be41fd51e0ce20f864bc0439814eb01b848
parente3102722ffe77094ba9e7e46380792b3dd8a7abd
init: refactor mount_root

Provide stubs for all the lower level mount helpers, and just switch
on ROOT_DEV in the main function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230531125535.676098-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init/do_mounts.c