diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-06-13 12:42:56 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-25 02:39:16 +0200 |
commit | f110ed8498afa6ff8e9a8c08fb26880e02117616 (patch) | |
tree | 113cdc59771c97795a6782c18bf6c5dba0deeceb /io_uring/rsrc.c | |
parent | io_uring: replace zero-length array with flexible-array member (diff) | |
download | linux-f110ed8498afa6ff8e9a8c08fb26880e02117616.tar.xz linux-f110ed8498afa6ff8e9a8c08fb26880e02117616.zip |
io_uring: split out fixed file installation and removal
Put it with the filetable code, which is where it belongs. While doing
so, have the helpers take a ctx rather than an io_kiocb. It doesn't make
sense to use a request, as it's not an operation on the request itself.
It applies to the ring itself.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rsrc.c')
-rw-r--r-- | io_uring/rsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c index 110608955159..706fa020505b 100644 --- a/io_uring/rsrc.c +++ b/io_uring/rsrc.c @@ -703,7 +703,7 @@ static int io_files_update_with_index_alloc(struct io_kiocb *req, if (ret < 0) break; if (copy_to_user(&fds[done], &ret, sizeof(ret))) { - __io_close_fixed(req, issue_flags, ret); + __io_close_fixed(req->ctx, issue_flags, ret); ret = -EFAULT; break; } |