summaryrefslogtreecommitdiff
path: root/fs/internal.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-22 12:41:02 +0300
committerChristoph Hellwig <hch@lst.de>2020-07-31 09:17:53 +0300
commit1097742efc643ffc667c5c6684635b2663145a7d (patch)
tree8cfd84b2df0b78392661466d6a18ce09f3e5f9f7 /fs/internal.h
parentb873498f99c77e7b5be3aa5ffe9ca67437232fe0 (diff)
downloadlinux-1097742efc643ffc667c5c6684635b2663145a7d.tar.xz
init: add an init_chmod helper
Add a simple helper to chmod with a kernel space file name and switch the early init code over to it. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/internal.h b/fs/internal.h
index e81b9e23c3ea..6d82681c7d83 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -131,7 +131,7 @@ extern struct open_how build_open_how(int flags, umode_t mode);
extern int build_open_flags(const struct open_how *how, struct open_flags *op);
long do_sys_ftruncate(unsigned int fd, loff_t length, int small);
-int do_fchmodat(int dfd, const char __user *filename, umode_t mode);
+int chmod_common(const struct path *path, umode_t mode);
int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group,
int flag);
int chown_common(const struct path *path, uid_t user, gid_t group);