aboutsummaryrefslogtreecommitdiffstats
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2023-11-30 12:49:08 +0000
committerChristian Brauner <[email protected]>2023-12-12 13:24:13 +0000
commit24fa3ae9467f49dd9698fd884f2c6b13cc8ea12d (patch)
treed79adef9a062c6e43d7c21dd51d0418fedd6e7bc /fs/file_table.c
parentfile: s/close_fd_get_file()/file_close_fd()/g (diff)
downloadkernel-24fa3ae9467f49dd9698fd884f2c6b13cc8ea12d.tar.gz
kernel-24fa3ae9467f49dd9698fd884f2c6b13cc8ea12d.zip
file: remove pointless wrapper
Only io_uring uses __close_fd_get_file(). All it does is hide current->files but io_uring accesses files_struct directly right now anyway so it's a bit pointless. Just rename pick_file() to file_close_fd_locked() and let io_uring use it. Add a lockdep assert in there that we expect the caller to hold file_lock while we're at it. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jens Axboe <[email protected]> Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions