fs: make build_open_flags() available internally
[linux-block.git] / fs / internal.h
index e3fa69544b66c0bd18e99a023ccf0f32f7b8e009..c4baf42f8d8a4848058468abb8b1e8c26956bcb1 100644 (file)
@@ -124,6 +124,8 @@ extern struct file *do_filp_open(int dfd, struct filename *pathname,
                const struct open_flags *op);
 extern struct file *do_file_open_root(struct dentry *, struct vfsmount *,
                const char *, const struct open_flags *);
+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);
 long do_faccessat(int dfd, const char __user *filename, int mode);