io_uring: remove files pointer in cancellation functions
authorHao Xu <haoxu@linux.alibaba.com>
Thu, 12 Aug 2021 04:14:35 +0000 (12:14 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Aug 2021 21:58:23 +0000 (15:58 -0600)
commit2de68babf79c8c90aa8e2cdedfe3c720375cf673
tree1285fd9db98aaa44e5a3c34b95de8673c19d32a4
parenta29f61590cb6265514f473577afd01bb68d0f9ab
io_uring: remove files pointer in cancellation functions

When doing cancellation, we use a parameter to indicate where it's from
do_exit or exec. So a boolean value is good enough for this, remove the
struct files* as it is not necessary.

Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
[axboe: fixup io_uring_files_cancel for !CONFIG_IO_URING]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/io_uring.h
kernel/exit.c