diff options
| author | Christoph Hellwig <[email protected]> | 2020-07-22 09:26:13 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2020-07-31 06:17:52 +0000 |
| commit | 4b7ca5014cbef51cdb99fd644eae4f3773747a05 (patch) | |
| tree | 694867036c56c7e99e0dd8754af9526d8d00c04c /drivers/base/devtmpfs.c | |
| parent | init: add an init_chdir helper (diff) | |
| download | kernel-4b7ca5014cbef51cdb99fd644eae4f3773747a05.tar.gz kernel-4b7ca5014cbef51cdb99fd644eae4f3773747a05.zip | |
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 <[email protected]>
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); |
