summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-14 08:55:05 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-16 15:33:04 +0200
commit9e96c8c0e94eea2f69a9705f5d0f51928ea26c17 (patch)
treeb37bff2ea4afb198636d736ad4e4572af4aeaeb3 /include
parentc04011fe8cbd80af1be6e12b53193bf3846750d7 (diff)
downloadlinux-9e96c8c0e94eea2f69a9705f5d0f51928ea26c17.tar.bz2
fs: add a vfs_fchmod helper
Add a helper for struct file based chmode operations. To be used by the initramfs code soon. 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/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 0ddd64ca0b45..635086726f20 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1745,6 +1745,7 @@ int vfs_mkobj(struct dentry *, umode_t,
void *);
int vfs_fchown(struct file *file, uid_t user, gid_t group);
+int vfs_fchmod(struct file *file, umode_t mode);
extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);