diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-22 12:41:20 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-31 09:17:54 +0300 |
commit | 5fee64fcde0770c41e926ff981022eaa512d8980 (patch) | |
tree | 8519259e205878577de5fb440870457c5a989b4e /init/initramfs.c | |
parent | 83ff98c3e9cd2b82b4289e185f2ce7d635a9cbd3 (diff) | |
download | linux-5fee64fcde0770c41e926ff981022eaa512d8980.tar.xz |
init: add an init_mknod helper
Add a simple helper to mknod with a kernel space file name and switch
the early init code over to it. Remove the now unused ksys_mknod.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'init/initramfs.c')
-rw-r--r-- | init/initramfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index 0489eb65b3b8..425addaf7c69 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -355,7 +355,7 @@ static int __init do_name(void) } else if (S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) { if (maybe_link() == 0) { - ksys_mknod(collected, mode, rdev); + init_mknod(collected, mode, rdev); init_chown(collected, uid, gid, 0); init_chmod(collected, mode); do_utime(collected, mtime); |