diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-22 12:26:13 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-31 09:17:52 +0300 |
commit | 4b7ca5014cbef51cdb99fd644eae4f3773747a05 (patch) | |
tree | 694867036c56c7e99e0dd8754af9526d8d00c04c /drivers/base/devtmpfs.c | |
parent | db63f1e315384590b979f8f74abd1b5363b69894 (diff) | |
download | linux-4b7ca5014cbef51cdb99fd644eae4f3773747a05.tar.xz |
init: add an init_chroot helper
Add a simple helper to chroot with a kernel space file name and switch
the early init code over to it. Remove the now unused ksys_chroot.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/base/devtmpfs.c')
-rw-r--r-- | drivers/base/devtmpfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index e48aaba3166b..eac184e6d657 100644 --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c @@ -413,7 +413,7 @@ static int __init devtmpfs_setup(void *p) if (err) goto out; init_chdir("/.."); /* will traverse into overmounted root */ - ksys_chroot("."); + init_chroot("."); out: *(int *)p = err; complete(&setup_done); |