It's going to be used in a future commit. Signed-off-by: Daniele Di Proietto --- fs/file.c | 5 ++--- fs/internal.h | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/file.c b/fs/file.c index 384c83ce768d..573ab3b5191e 100644 --- a/fs/file.c +++ b/fs/file.c @@ -285,9 +285,8 @@ static int expand_fdtable(struct files_struct *files, unsigned int nr) * Return <0 error code on error; 0 on success. * The files->file_lock should be held on entry, and will be held on exit. */ -static int expand_files(struct files_struct *files, unsigned int nr) - __releases(files->file_lock) - __acquires(files->file_lock) +int expand_files(struct files_struct *files, unsigned int nr) + __releases(files->file_lock) __acquires(files->file_lock) { struct fdtable *fdt; int error; diff --git a/fs/internal.h b/fs/internal.h index cbc384a1aa09..3a26252dcdae 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -197,6 +197,8 @@ 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 expand_files(struct files_struct *files, unsigned int nr) + __releases(files->file_lock) __acquires(files->file_lock); int do_ftruncate(struct file *file, loff_t length, int small); int do_sys_ftruncate(unsigned int fd, loff_t length, int small); -- 2.43.0