summaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorKundan Kumar <kundan.kumar@samsung.com>2024-09-11 08:49:32 +0200
committerJens Axboe <axboe@kernel.dk>2024-09-11 15:24:00 +0200
commit7de98954687fe152c5f38afd719b3fdf9f34020a (patch)
tree312848e406236b3f9be8a75861e51fbc4fd6dee5 /block/blk.h
parentblock, bfq: factor out a helper to split bfqq in bfq_init_rq() (diff)
downloadlinux-7de98954687fe152c5f38afd719b3fdf9f34020a.tar.xz
linux-7de98954687fe152c5f38afd719b3fdf9f34020a.zip
block: Added folio-ized version of bio_add_hw_page()
Added new bio_add_hw_folio() function as a wrapper around bio_add_hw_page(). This is a prep patch. Signed-off-by: Kundan Kumar <kundan.kumar@samsung.com> Tested-by: Luis Chamberlain <mcgrof@kernel.org> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Link: https://lore.kernel.org/r/20240911064935.5630-2-kundan.kumar@samsung.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/block/blk.h b/block/blk.h
index 32f4e9f630a3..86affb583eb6 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -574,6 +574,10 @@ int bio_add_hw_page(struct request_queue *q, struct bio *bio,
struct page *page, unsigned int len, unsigned int offset,
unsigned int max_sectors, bool *same_page);
+int bio_add_hw_folio(struct request_queue *q, struct bio *bio,
+ struct folio *folio, size_t len, size_t offset,
+ unsigned int max_sectors, bool *same_page);
+
/*
* Clean up a page appropriately, where the page may be pinned, may have a
* ref taken on it or neither.