diff options
| author | David Wei <dw@davidwei.uk> | 2025-11-04 14:44:53 -0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-06 16:23:21 -0700 |
| commit | 1fa7a34131110e3c41a13b19127da132dea32dcd (patch) | |
| tree | 79910f1fb6bbec02237e4295d63b03ffe27e9727 /io_uring/memmap.h | |
| parent | a5af56a9020c0dd27bc6ab2b58d1820b01621612 (diff) | |
io_uring/memmap: refactor io_free_region() to take user_struct param
Refactor io_free_region() to take user_struct directly, instead of
accessing it from the ring ctx.
Signed-off-by: David Wei <dw@davidwei.uk>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/memmap.h')
| -rw-r--r-- | io_uring/memmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/memmap.h b/io_uring/memmap.h index f9e94458c01f..a6c63ca2c6f1 100644 --- a/io_uring/memmap.h +++ b/io_uring/memmap.h @@ -16,7 +16,7 @@ unsigned long io_uring_get_unmapped_area(struct file *file, unsigned long addr, unsigned long flags); int io_uring_mmap(struct file *file, struct vm_area_struct *vma); -void io_free_region(struct io_ring_ctx *ctx, struct io_mapped_region *mr); +void io_free_region(struct user_struct *user, struct io_mapped_region *mr); int io_create_region(struct io_ring_ctx *ctx, struct io_mapped_region *mr, struct io_uring_region_desc *reg, unsigned long mmap_offset); |
