commit | 53dec2ea74f2ef360e8455439be96a780baa6097 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Jan 19 15:41:52 2021 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Feb 01 10:02:42 2021 -0700 |
tree | 1310979e2c4fa2b604ed81061fbee004ef1d9e7a | |
parent | e342c807f556dbcee1370ab78af1d8faf497d771 [diff] |
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>