summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-11-06 20:29:42 +0000
committerAndreas Gruenbacher <agruenba@redhat.com>2025-11-09 20:19:34 +0000
commitc3454ac0367fbc38b2558fbd6c7d25acdee71c50 (patch)
tree468fe5528ddf493c4cf32adb011abbda489982e6
parentde90521604fc5bf7473faf162b72bdbb23155165 (diff)
gfs2: Use bio_add_folio_nofail()
As the label says, we've just allocated a new BIO so we know we can add this folio to it. We now have bio_add_folio_nofail() for this purpose. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
-rw-r--r--fs/gfs2/lops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c
index 9c8c305a75c4..233b3aa8edca 100644
--- a/fs/gfs2/lops.c
+++ b/fs/gfs2/lops.c
@@ -562,8 +562,7 @@ int gfs2_find_jhead(struct gfs2_jdesc *jd, struct gfs2_log_header_host *head)
bio = gfs2_log_alloc_bio(sdp, dblock, gfs2_end_log_read);
bio->bi_opf = REQ_OP_READ;
add_block_to_new_bio:
- if (!bio_add_folio(bio, folio, bsize, off))
- BUG();
+ bio_add_folio_nofail(bio, folio, bsize, off);
block_added:
off += bsize;
if (off == folio_size(folio))