OSDN Git Service

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, 1 Feb 2021 17:02:42 +0000 (10:02 -0700)
commit53dec2ea74f2ef360e8455439be96a780baa6097
tree1310979e2c4fa2b604ed81061fbee004ef1d9e7a
parente342c807f556dbcee1370ab78af1d8faf497d771
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