init: add an init_mount helper
authorChristoph Hellwig <hch@lst.de>
Tue, 21 Jul 2020 09:12:08 +0000 (11:12 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2020 06:17:51 +0000 (08:17 +0200)
commitc60166f04283ffba7b88b45d824bbfb2bfccee24
tree511e51f8ae0e91e50742bf73ccbe302e8b14a313
parent09cbcec07b578c04ab4ab0e31940c20126f79c4b
init: add an init_mount helper

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.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/base/devtmpfs.c
fs/Makefile
fs/init.c [new file with mode: 0644]
fs/internal.h
fs/namespace.c
include/linux/init_syscalls.h [new file with mode: 0644]
init/do_mounts.c
init/do_mounts.h
init/do_mounts_initrd.c