mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
gfs2: Use b_folio in gfs2_submit_bhs()
Remove a reference to bh->b_page which is going to be removed soon. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
parent
3f2fc848be
commit
072d732c05
|
|
@ -232,7 +232,7 @@ static void gfs2_submit_bhs(blk_opf_t opf, struct buffer_head *bhs[], int num)
|
|||
bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9);
|
||||
while (num > 0) {
|
||||
bh = *bhs;
|
||||
if (!bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh))) {
|
||||
if (!bio_add_folio(bio, bh->b_folio, bh->b_size, bh_offset(bh))) {
|
||||
BUG_ON(bio->bi_iter.bi_size == 0);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user