summaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-13 11:10:11 -0700
committerJens Axboe <axboe@kernel.dk>2020-01-20 17:01:53 -0700
commit35cb6d54c1d5daf1d1ed585ef5ce4557e7ab284c (patch)
treec7d2670b891478bf140ca25919d1615fc2e05c35 /fs/internal.h
parentd63d1b5edb7b832210bfde587ba9e7549fa064eb (diff)
downloadlinux-35cb6d54c1d5daf1d1ed585ef5ce4557e7ab284c.tar.bz2
fs: make build_open_flags() available internally
This is a prep patch for supporting non-blocking open from io_uring. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h
index e3fa69544b66..c4baf42f8d8a 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -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);