summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-06 15:03:21 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-31 08:16:00 +0200
commit166e07c37c6417c9713666268fc0eb89a9ce48b9 (patch)
tree05d5de0b6423e67d1ed8dd664c82c2d97c8faecb /include
parentfb2da16cd70a5140acdd7a102e5cd3b697c3404f (diff)
fs: remove ksys_open
Just open code it in the two callers. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/syscalls.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index a998651629c7..363baaadf8e1 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -1374,17 +1374,6 @@ static inline int ksys_close(unsigned int fd)
return __close_fd(current->files, fd);
}
-extern long do_sys_open(int dfd, const char __user *filename, int flags,
- umode_t mode);
-
-static inline long ksys_open(const char __user *filename, int flags,
- umode_t mode)
-{
- if (force_o_largefile())
- flags |= O_LARGEFILE;
- return do_sys_open(AT_FDCWD, filename, flags, mode);
-}
-
extern long do_sys_truncate(const char __user *pathname, loff_t length);
static inline long ksys_truncate(const char __user *pathname, loff_t length)