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)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Dec 2022 21:30:33 +0000 (14:30 -0700)
commit369d83e272a9f1a316ce79b1236f1f3265e40efe
tree20a5595921617b17f2a0a761c92785629f092f70
parentba51a050af49c1df47fe79687d5f14256620d508
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>
fs/file.c
fs/internal.h