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>
Mon, 25 Jan 2021 15:18:37 +0000 (08:18 -0700)
commit1633582bcdf155039deb6ab37a8008ab39f8fb2c
treee17493f958ce8180c8a4ce7873dfcfa619e02ad0
parentac4e5af860a8e1c2f4d73e9a363981b7d1228ca5
fs: provide locked helper variant of close_fd_get_file()

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