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:
@@ -1277,15 +1277,6 @@ static inline long ksys_mkdir(const char __user *pathname, umode_t mode)
|
||||
return do_mkdirat(AT_FDCWD, pathname, mode);
|
||||
}
|
||||
|
||||
extern long do_symlinkat(const char __user *oldname, int newdfd,
|
||||
const char __user *newname);
|
||||
|
||||
static inline long ksys_symlink(const char __user *oldname,
|
||||
const char __user *newname)
|
||||
{
|
||||
return do_symlinkat(oldname, AT_FDCWD, newname);
|
||||
}
|
||||
|
||||
extern long do_mknodat(int dfd, const char __user *filename, umode_t mode,
|
||||
unsigned int dev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user