summaryrefslogtreecommitdiff
path: root/fs/internal.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-22 12:14:19 +0300
committerChristoph Hellwig <hch@lst.de>2020-07-31 09:17:53 +0300
commit812931d693da58cc24d2bb8dec01c2b4a7f4668f (patch)
tree2e95f34172c407d94ca5a097eae30852c01551cc /fs/internal.h
parenteb9d7d390e51108b4c6a9a7993ed9be92548c8f7 (diff)
downloadlinux-812931d693da58cc24d2bb8dec01c2b4a7f4668f.tar.xz
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>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/internal.h b/fs/internal.h
index 6d82681c7d83..58451b033d26 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -69,8 +69,7 @@ long do_rmdir(int dfd, struct filename *name);
long do_unlinkat(int dfd, struct filename *name);
long do_symlinkat(const char __user *oldname, int newdfd,
const char __user *newname);
-int do_linkat(int olddfd, const char __user *oldname, int newdfd,
- const char __user *newname, int flags);
+int may_linkat(struct path *link);
/*
* namespace.c