summaryrefslogtreecommitdiffstats
path: root/init/initramfs.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-22 11:14:19 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-31 08:17:53 +0200
commit812931d693da58cc24d2bb8dec01c2b4a7f4668f (patch)
tree2e95f34172c407d94ca5a097eae30852c01551cc /init/initramfs.c
parentinit: add an init_eaccess helper (diff)
downloadlinux-812931d693da58cc24d2bb8dec01c2b4a7f4668f.tar.xz
linux-812931d693da58cc24d2bb8dec01c2b4a7f4668f.zip
init: add an init_link helper
Add a simple helper to link with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_link. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'init/initramfs.c')
-rw-r--r--init/initramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/initramfs.c b/init/initramfs.c
index efa9fb70038d..516a66900d7a 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -312,7 +312,7 @@ static int __init maybe_link(void)
char *old = find_link(major, minor, ino, mode, collected);
if (old) {
clean_path(collected, 0);
- return (ksys_link(old, collected) < 0) ? -1 : 1;
+ return (init_link(old, collected) < 0) ? -1 : 1;
}
}
return 0;