On Wed, 30 Apr 2025, Christoph Hellwig wrote: > Convert the __bio_add_page(..., virt_to_page(), ...) pattern to the > bio_add_virt_nofail helper implementing it. > > Signed-off-by: Christoph Hellwig <h...@lst.de> > Reviewed-by: Damien Le Moal <dlem...@kernel.org> > Reviewed-by: Johannes Thumshirn <johannes.thumsh...@wdc.com> Acked-by: Mikulas Patocka <mpato...@redhat.com> > --- > drivers/md/dm-bufio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c > index 9c8ed65cd87e..e82cd5dc83ce 100644 > --- a/drivers/md/dm-bufio.c > +++ b/drivers/md/dm-bufio.c > @@ -1362,7 +1362,7 @@ static void use_bio(struct dm_buffer *b, enum req_op > op, sector_t sector, > ptr = (char *)b->data + offset; > len = n_sectors << SECTOR_SHIFT; > > - __bio_add_page(bio, virt_to_page(ptr), len, offset_in_page(ptr)); > + bio_add_virt_nofail(bio, ptr, len); > > submit_bio(bio); > } > -- > 2.47.2 > >
- Re: [PATCH 15/19] xfs: simplify xfs_buf_submit_bio Darrick J. Wong
- Re: [PATCH 15/19] xfs: simplify xfs_buf_submit_... Christoph Hellwig
- [PATCH 12/19] PM: hibernate: split and simplify hib_subm... Christoph Hellwig
- [PATCH 17/19] xfs: simplify building the bio in xlog_wri... Christoph Hellwig
- Re: [PATCH 17/19] xfs: simplify building the bio in... Damien Le Moal
- Re: [PATCH 17/19] xfs: simplify building the bio in... Darrick J. Wong
- [PATCH 14/19] dm-integrity: use bio_add_virt_nofail Christoph Hellwig
- Re: [PATCH 14/19] dm-integrity: use bio_add_virt_no... Mikulas Patocka
- [PATCH 18/19] btrfs: use bdev_rw_virt in scrub_one_super Christoph Hellwig
- [PATCH 13/19] dm-bufio: use bio_add_virt_nofail Christoph Hellwig
- Re: [PATCH 13/19] dm-bufio: use bio_add_virt_nofail Mikulas Patocka
- [PATCH 19/19] hfsplus: use bdev_rw_virt in hfsplus_submi... Christoph Hellwig
- [PATCH 08/19] bcache: use bio_add_virt_nofail Christoph Hellwig
- [PATCH 16/19] xfs: simplify xfs_rw_bdev Christoph Hellwig
- Re: add more bio helpers v2 Christoph Hellwig
- Re: add more bio helpers v2 Mikulas Patocka