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: NChristoph Hellwig <hch@lst.de>
Showing
fs/init.c
0 → 100644
include/linux/init_syscalls.h
0 → 100644
想要评论请 注册 或 登录