]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs: provide locked helper variant of close_fd_get_file()
authorJens Axboe <axboe@kernel.dk>
Tue, 19 Jan 2021 22:41:52 +0000 (15:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:39:18 +0000 (11:39 +0100)
commitd2136fc145be417e851dfe50703fac2af6aabe46
tree20a5595921617b17f2a0a761c92785629f092f70
parent57b20530363d127ab6a82e336275769258eb5f37
fs: provide locked helper variant of close_fd_get_file()

[ Upstream commit 53dec2ea74f2ef360e8455439be96a780baa6097 ]

Assumes current->files->file_lock is already held on invocation. Helps
the caller check the file before removing the fd, if it needs to.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/file.c
fs/internal.h