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>
Mon, 23 Aug 2021 19:10:37 +0000 (13:10 -0600)
commitf552a27afe67f05c47bb0c33b92af2a23b684c31
tree8912511828074b3ef4892889497fce23a4d5612c
parenta4aadd11ea4932588e6530ecd021ffe39f9d5adf
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