summaryrefslogtreecommitdiff
path: root/fs/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/init.c')
-rw-r--r--fs/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/init.c b/fs/init.c
index f46e54552931..a54ef750ffe3 100644
--- a/fs/init.c
+++ b/fs/init.c
@@ -152,8 +152,9 @@ int __init init_link(const char *oldname, const char *newname)
int __init init_symlink(const char *oldname, const char *newname)
{
- return do_symlinkat(getname_kernel(oldname), AT_FDCWD,
- getname_kernel(newname));
+ CLASS(filename_kernel, old)(oldname);
+ CLASS(filename_kernel, new)(newname);
+ return filename_symlinkat(old, AT_FDCWD, new);
}
int __init init_unlink(const char *pathname)