summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJoanne Koong <joannelkoong@gmail.com>2025-11-20 22:15:56 +0300
committerJens Axboe <axboe@kernel.dk>2025-11-20 23:23:05 +0300
commit84692a1519b32d61ff882cf24a9eda900961acad (patch)
treef742213a74007cfc1a6a9170219c7b9bb7bd5fe8 /include/linux
parentf779ac0b8784858c3700f6660d606f436c62157a (diff)
downloadlinux-84692a1519b32d61ff882cf24a9eda900961acad.tar.xz
io_uring/kbuf: remove obsolete buf_nr_pages and update comments
The buf_nr_pages field in io_buffer_list was previously used to determine whether the buffer list uses ring-provided buffers or classic provided buffers. This is now determined by checking the IOBL_BUF_RING flag. Remove the buf_nr_pages field and update related comments. Signed-off-by: Joanne Koong <joannelkoong@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/io_uring_types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/io_uring_types.h b/include/linux/io_uring_types.h
index 92780764d5fa..e1adb0d20a0a 100644
--- a/include/linux/io_uring_types.h
+++ b/include/linux/io_uring_types.h
@@ -327,8 +327,8 @@ struct io_ring_ctx {
/*
* Modifications are protected by ->uring_lock and ->mmap_lock.
- * The flags, buf_pages and buf_nr_pages fields should be stable
- * once published.
+ * The buffer list's io mapped region should be stable once
+ * published.
*/
struct xarray io_bl_xa;