Skip to contentSkip to conversation

fs: gfs2: fix build failure

PATCH In review Ming Lei 2 participants 2 messages Jan 16, 2019

Subsystems (2)
lore
Share & tools
lore

Ming Lei

author
#0 lore raw

PATCH 1/1 fs: gfs2: fix build failure

There is one bio_for_each_segment_all() not converted, so fix it.

Fixes eb754eb2a953ead0 ("block: allow bio_for_each_segment_all() to iterate over multi-page bvec")
Cc Omar Sandoval <[email protected]>
Cc Christoph Hellwig <[email protected]>
---
 fs/gfs2/lops.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/gfs2/lops.c +2 -1
index ef68bf6232e7..15deefeaafd0 100644
@@ -390,8 +390,9 @@ static void gfs2_end_log_read(struct bio *bio)
 	struct page *page;
 	struct bio_vec *bvec;
 	int i;
+	struct bvec_iter_all iter_all;
 
-	bio_for_each_segment_all(bvec, bio, i) {
+	bio_for_each_segment_all(bvec, bio, i, iter_all) {
 		page = bvec->bv_page;
 		if (bio->bi_status) {
 			int err = blk_status_to_errno(bio->bi_status);
Signature · 1 line
2.14.4
maintainer
#1 lore raw
Quoted 1 line · Ming Lei

There is one bio_for_each_segment_all() not converted, so fix it.

Just pushed it out yesterday, I'll just fold this in.

Signature · 1 line
Jens Axboe