Re: [PATCH 12/24] init: add an init_mount helper

From: Al Viro
Date: Tue Jul 21 2020 - 13:03:52 EST


On Tue, Jul 21, 2020 at 06:28:06PM +0200, Christoph Hellwig wrote:
> Like do_mount, but takes a kernel pointer for the destination path.
> Switch over the mounts in the init code and devtmpfs to it, which
> just happen to work due to the implicit set_fs(KERNEL_DS) during early
> init right now.

> init/fs.c | 20 ++++++++++++++++++++

fs/for_init.c, please.