diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2024-11-29 16:34:24 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2024-12-23 18:17:15 +0300 |
| commit | a730d2047d4ef822262c37f51ff7267f2f0e7167 (patch) | |
| tree | cfb116a463d154b97d087f14f66fa1b806809141 /include/linux | |
| parent | 7427b0b49ad51304c041ffb8c413f342e148cdea (diff) | |
| download | linux-a730d2047d4ef822262c37f51ff7267f2f0e7167.tar.xz | |
io_uring/memmap: flag vmap'ed regions
Add internal flags for struct io_mapped_region. The first flag we need
is IO_REGION_F_VMAPPED, that indicates that the pointer has to be
unmapped on region destruction. For now all regions are vmap'ed, so it's
set unconditionally.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/5a3d8046a038da97c0f8a8c8f1733fa3fc689d31.1732886067.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/io_uring_types.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/io_uring_types.h b/include/linux/io_uring_types.h index fafc1d779eb1..0793a91b66a5 100644 --- a/include/linux/io_uring_types.h +++ b/include/linux/io_uring_types.h @@ -78,8 +78,9 @@ struct io_hash_table { struct io_mapped_region { struct page **pages; - void *vmap_ptr; - size_t nr_pages; + void *ptr; + unsigned nr_pages; + unsigned flags; }; /* |
