init: factor the root_wait logic in prepare_namespace into a helper
authorChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 12:55:22 +0000 (14:55 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Jun 2023 16:55:20 +0000 (10:55 -0600)
commit3701c600a3e735b9fbac6f7a73e4c086090c97ca
tree48995fd55af5becc6ca06e3882d586e5d217aa93
parent07d63cbb67cdb5e2a7720fdd8579b3be979c2d66
init: factor the root_wait logic in prepare_namespace into a helper

The root_wait logic is a bit obsfucated right now.  Expand it and move it
into a helper.

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