Various functions will flush and put each file inline the way close(2) does in follow-up patches. Drop the static and add a prototype next to file_close_fd_locked(). Signed-off-by: Christian Brauner (Amutable) --- fs/internal.h | 1 + fs/open.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/internal.h b/fs/internal.h index c658c8a5ebd5..b1ca3320cb21 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -198,6 +198,7 @@ extern struct file *do_file_open_root(const struct path *, 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); struct file *file_close_fd_locked(struct files_struct *files, unsigned fd); +int filp_flush(struct file *filp, fl_owner_t id); int do_ftruncate(struct file *file, loff_t length, unsigned int flags); int chmod_common(const struct path *path, umode_t mode); diff --git a/fs/open.c b/fs/open.c index 6b1c14e684a9..7181665c3af5 100644 --- a/fs/open.c +++ b/fs/open.c @@ -1506,7 +1506,7 @@ SYSCALL_DEFINE2(creat, const char __user *, pathname, umode_t, mode) * "id" is the POSIX thread ID. We use the * files pointer for this.. */ -static int filp_flush(struct file *filp, fl_owner_t id) +int filp_flush(struct file *filp, fl_owner_t id) { int retval = 0; -- 2.53.0