summaryrefslogtreecommitdiff
path: root/block/bio.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-04-25 17:37:56 +0100
committerDavid Sterba <dsterba@suse.com>2024-05-07 21:31:10 +0200
commit8fde439b2d77356a2e0ace70cd8e24a4a5ded352 (patch)
treee69e644eb3fc28f2d1c5ca5ef68b2410319637a2 /block/bio.c
parent58a774ca168dfb2a3513be90d56a6a04eeae53ad (diff)
bio: Export bio_add_folio_nofail to modules
Several modules use __bio_add_page() today and may need to be converted to bio_add_folio_nofail(). Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/bio.c b/block/bio.c
index d24420ed1c4c..19ba3aeacdbb 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -1125,6 +1125,7 @@ void bio_add_folio_nofail(struct bio *bio, struct folio *folio, size_t len,
WARN_ON_ONCE(off > UINT_MAX);
__bio_add_page(bio, &folio->page, len, off);
}
+EXPORT_SYMBOL_GPL(bio_add_folio_nofail);
/**
* bio_add_folio - Attempt to add part of a folio to a bio.