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>
This commit is contained in:
@@ -1295,15 +1295,6 @@ static inline long ksys_mknod(const char __user *filename, umode_t mode,
|
||||
return do_mknodat(AT_FDCWD, filename, mode, dev);
|
||||
}
|
||||
|
||||
extern int do_linkat(int olddfd, const char __user *oldname, int newdfd,
|
||||
const char __user *newname, int flags);
|
||||
|
||||
static inline long ksys_link(const char __user *oldname,
|
||||
const char __user *newname)
|
||||
{
|
||||
return do_linkat(AT_FDCWD, oldname, AT_FDCWD, newname, 0);
|
||||
}
|
||||
|
||||
extern int do_fchownat(int dfd, const char __user *filename, uid_t user,
|
||||
gid_t group, int flag);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user