History

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.

Christoph Hellwig committed 6 years ago

Commit 812931d1 parent eb9d7d36 files · +38 −14Browse files

Showing the changes to include/linux (2 of 6 files). Show all

Unified · Split

2 files
  1. include/linux/init_syscalls.h +1 −0
  2. include/linux/syscalls.h +0 −9
include/linux/init_syscalls.h+1−0
@@ -8,5 +8,6 @@ int __init init_chroot(const char *filename); · 7 unmodified lines
88 int __init init_chown(const char *filename, uid_t user, gid_t group, int flags);
99 int __init init_chmod(const char *filename, umode_t mode);
1010 int __init init_eaccess(const char *filename);
11+int __init init_link(const char *oldname, const char *newname);
1112 int __init init_unlink(const char *pathname);
1213 int __init init_rmdir(const char *pathname);
include/linux/syscalls.h+0−9
@@ -1295,15 +1295,6 @@ static inline long ksys_mknod(const char __user *filename, umode_t mode, · 1294 unmodified lines
12951295 return do_mknodat(AT_FDCWD, filename, mode, dev);
12961296 }
12971297
1298−extern int do_linkat(int olddfd, const char __user *oldname, int newdfd,
1299− const char __user *newname, int flags);
1300−
1301−static inline long ksys_link(const char __user *oldname,
1302− const char __user *newname)
1303−{
1304− return do_linkat(AT_FDCWD, oldname, AT_FDCWD, newname, 0);
1305−}
1306−
13071298 extern int do_fchownat(int dfd, const char __user *filename, uid_t user,
13081299 gid_t group, int flag);
13091300