aboutsummaryrefslogtreecommitdiffstats
path: root/io_uring
diff options
authorMatthew Wilcox (Oracle) <willy@infradead.org>2026-05-28 18:59:03 +0100
committerJens Axboe <axboe@kernel.dk>2026-05-29 05:34:24 -0600
commitca36c1aaee095d009d73f6623fb5e536ada80032 (patch)
treee2b954d3b906f8a9ef6aa95f145e55d09dc4733f /io_uring
parent7d6eb455ecf0f95c54257ae372ac1272cff834e3 (diff)
downloadath-ca36c1aaee095d009d73f6623fb5e536ada80032.tar.gz
block: Add bvec_folio()
This is a simple helper which replaces page_folio(bvec->bv_page). Minor improvement in readability, but the real motivation is to reduce the number of references to bvec->bv_page so that it can be changed with less work. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Leon Romanovsky <leon@kernel.org> Reviewed-by: Hannes Reinecke <hare@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: William Kucharski <william.kucharski@linux.dev> Link: https://patch.msgid.link/20260528175905.1102280-2-willy@infradead.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/rsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c
index 650303626be6e..5d792f70ec1ed 100644
--- a/io_uring/rsrc.c
+++ b/io_uring/rsrc.c
@@ -102,7 +102,7 @@ static void io_release_ubuf(void *priv)
unsigned int i;
for (i = 0; i < imu->nr_bvecs; i++) {
- struct folio *folio = page_folio(imu->bvec[i].bv_page);
+ struct folio *folio = bvec_folio(&imu->bvec[i]);
unpin_user_folio(folio, 1);
}