aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-14 08:59:57 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-31 08:16:01 +0200
commitb25ba7c3c9acdc4cf69f5bd69989819cabfc4e3b (patch)
treea8e34ada183844f80fa2aed23173d1ab63dee27e /fs/open.c
parentfs: remove ksys_dup (diff)
downloadlinux-dev-b25ba7c3c9acdc4cf69f5bd69989819cabfc4e3b.tar.xz
linux-dev-b25ba7c3c9acdc4cf69f5bd69989819cabfc4e3b.zip
fs: remove ksys_fchmod
Fold it into the only remaining caller. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/open.c b/fs/open.c
index ab3671af8a97..b316dd6a86a8 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -608,7 +608,7 @@ int vfs_fchmod(struct file *file, umode_t mode)
return chmod_common(&file->f_path, mode);
}
-int ksys_fchmod(unsigned int fd, umode_t mode)
+SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode)
{
struct fd f = fdget(fd);
int err = -EBADF;
@@ -620,11 +620,6 @@ int ksys_fchmod(unsigned int fd, umode_t mode)
return err;
}
-SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode)
-{
- return ksys_fchmod(fd, mode);
-}
-
int do_fchmodat(int dfd, const char __user *filename, umode_t mode)
{
struct path path;