diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2025-04-05 11:18:29 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-04-07 07:36:52 -0600 |
| commit | 5a17131a5dbd0ebca655bfb65fe3fe643ccc27f3 (patch) | |
| tree | 8db7e41190fd854f46937d51ec2b10b8dc021bcf /io_uring/zcrx.h | |
| parent | 9b58440a5b2fe78102ce1e9e03946645558d0f55 (diff) | |
io_uring/zcrx: separate niov number from pages
A preparation patch that separates the number of pages / folios from
the number of niovs. They will not match in the future to support huge
pages, improved dma mapping and/or larger chunk sizes.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/0780ac966ee84200385737f45bb0f2ada052392b.1743848231.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/zcrx.h')
| -rw-r--r-- | io_uring/zcrx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/zcrx.h b/io_uring/zcrx.h index b59c560d5d84..47f1c0e8c197 100644 --- a/io_uring/zcrx.h +++ b/io_uring/zcrx.h @@ -15,6 +15,7 @@ struct io_zcrx_area { bool is_mapped; u16 area_id; struct page **pages; + unsigned long nr_folios; /* freelist */ spinlock_t freelist_lock ____cacheline_aligned_in_smp; |
