public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bio: Export bio_add_folio_nofail to modules
@ 2024-04-25 16:37 Matthew Wilcox (Oracle)
  2024-04-26  6:47 ` Johannes Thumshirn
  2024-04-26 13:41 ` Jens Axboe
  0 siblings, 2 replies; 6+ messages in thread
From: Matthew Wilcox (Oracle) @ 2024-04-25 16:37 UTC (permalink / raw)
  To: David Sterba; +Cc: Matthew Wilcox (Oracle), Johannes Thumshirn, linux-block

Several modules use __bio_add_page() today and may need to be converted
to bio_add_folio_nofail().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 block/bio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/bio.c b/block/bio.c
index 38baedb39c6f..3f3977c69997 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.
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-04-30  9:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-25 16:37 [PATCH] bio: Export bio_add_folio_nofail to modules Matthew Wilcox (Oracle)
2024-04-26  6:47 ` Johannes Thumshirn
2024-04-26 13:41 ` Jens Axboe
2024-04-26 14:02   ` Matthew Wilcox
2024-04-26 14:03     ` Jens Axboe
2024-04-30  9:19       ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox