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

* Re: [PATCH] bio: Export bio_add_folio_nofail to modules
  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
  1 sibling, 0 replies; 6+ messages in thread
From: Johannes Thumshirn @ 2024-04-26  6:47 UTC (permalink / raw)
  To: Matthew Wilcox (Oracle), David Sterba; +Cc: linux-block@vger.kernel.org

Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>

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

* Re: [PATCH] bio: Export bio_add_folio_nofail to modules
  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
  1 sibling, 1 reply; 6+ messages in thread
From: Jens Axboe @ 2024-04-26 13:41 UTC (permalink / raw)
  To: Matthew Wilcox (Oracle), David Sterba; +Cc: Johannes Thumshirn, linux-block

On 4/25/24 10:37 AM, Matthew Wilcox (Oracle) wrote:
> Several modules use __bio_add_page() today and may need to be converted
> to bio_add_folio_nofail().

Confused, we don't have any modular users of this. A change like this
should be submitted with a conversion.

-- 
Jens Axboe



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

* Re: [PATCH] bio: Export bio_add_folio_nofail to modules
  2024-04-26 13:41 ` Jens Axboe
@ 2024-04-26 14:02   ` Matthew Wilcox
  2024-04-26 14:03     ` Jens Axboe
  0 siblings, 1 reply; 6+ messages in thread
From: Matthew Wilcox @ 2024-04-26 14:02 UTC (permalink / raw)
  To: Jens Axboe; +Cc: David Sterba, Johannes Thumshirn, linux-block

On Fri, Apr 26, 2024 at 07:41:29AM -0600, Jens Axboe wrote:
> On 4/25/24 10:37 AM, Matthew Wilcox (Oracle) wrote:
> > Several modules use __bio_add_page() today and may need to be converted
> > to bio_add_folio_nofail().
> 
> Confused, we don't have any modular users of this. A change like this
> should be submitted with a conversion.

Thank you for reinforcing my point.

https://lore.kernel.org/linux-fsdevel/ZiqHIH3lIzcRXCkU@casper.infradead.org/

Can I have an Acked-by so David can take it through the btrfs tree?

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

* Re: [PATCH] bio: Export bio_add_folio_nofail to modules
  2024-04-26 14:02   ` Matthew Wilcox
@ 2024-04-26 14:03     ` Jens Axboe
  2024-04-30  9:19       ` David Sterba
  0 siblings, 1 reply; 6+ messages in thread
From: Jens Axboe @ 2024-04-26 14:03 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: David Sterba, Johannes Thumshirn, linux-block

On 4/26/24 8:02 AM, Matthew Wilcox wrote:
> On Fri, Apr 26, 2024 at 07:41:29AM -0600, Jens Axboe wrote:
>> On 4/25/24 10:37 AM, Matthew Wilcox (Oracle) wrote:
>>> Several modules use __bio_add_page() today and may need to be converted
>>> to bio_add_folio_nofail().
>>
>> Confused, we don't have any modular users of this. A change like this
>> should be submitted with a conversion.
> 
> Thank you for reinforcing my point.
> 
> https://lore.kernel.org/linux-fsdevel/ZiqHIH3lIzcRXCkU@casper.infradead.org/
> 
> Can I have an Acked-by so David can take it through the btrfs tree?

Yeah that's fine, makes more sense now than the standalone one:

Reviewed-by: Jens Axboe <axboe@kernel.dk>

-- 
Jens Axboe



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

* Re: [PATCH] bio: Export bio_add_folio_nofail to modules
  2024-04-26 14:03     ` Jens Axboe
@ 2024-04-30  9:19       ` David Sterba
  0 siblings, 0 replies; 6+ messages in thread
From: David Sterba @ 2024-04-30  9:19 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Matthew Wilcox, Johannes Thumshirn, linux-block

On Fri, Apr 26, 2024 at 08:03:56AM -0600, Jens Axboe wrote:
> On 4/26/24 8:02 AM, Matthew Wilcox wrote:
> > On Fri, Apr 26, 2024 at 07:41:29AM -0600, Jens Axboe wrote:
> >> On 4/25/24 10:37 AM, Matthew Wilcox (Oracle) wrote:
> >>> Several modules use __bio_add_page() today and may need to be converted
> >>> to bio_add_folio_nofail().
> >>
> >> Confused, we don't have any modular users of this. A change like this
> >> should be submitted with a conversion.
> > 
> > Thank you for reinforcing my point.
> > 
> > https://lore.kernel.org/linux-fsdevel/ZiqHIH3lIzcRXCkU@casper.infradead.org/
> > 
> > Can I have an Acked-by so David can take it through the btrfs tree?
> 
> Yeah that's fine, makes more sense now than the standalone one:
> 
> Reviewed-by: Jens Axboe <axboe@kernel.dk>

Thanks, I'll add it to Matthew's series in my patch queue and it'll
appear in linux-next soon.

^ permalink raw reply	[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