# Re: \[PATCH 12/24\] init: add an init\_mount helper

- From: Al Viro \<viro@zeniv.linux.org.uk\>
- Date: 2020-07-21 17:03:50 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2020/07/184902
- Thread: https://ratatoskr.run/linux-raid/2020/07/184897/t.md

```text
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.
```
