init: add an init_symlink helper
Add a simple helper to symlink with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_symlink. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -392,7 +392,7 @@ static int __init do_symlink(void)
|
||||
{
|
||||
collected[N_ALIGN(name_len) + body_len] = '\0';
|
||||
clean_path(collected, 0);
|
||||
ksys_symlink(collected + N_ALIGN(name_len), collected);
|
||||
init_symlink(collected + N_ALIGN(name_len), collected);
|
||||
init_chown(collected, uid, gid, AT_SYMLINK_NOFOLLOW);
|
||||
do_utime(collected, mtime);
|
||||
state = SkipIt;
|
||||
|
Reference in New Issue
Block a user