All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: gfs2: fix build failure
@ 2019-01-16  2:16 Ming Lei
  2019-01-16  2:52 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Ming Lei @ 2019-01-16  2:16 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, Ming Lei, Omar Sandoval, Christoph Hellwig

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

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: eb754eb2a953ead0 ("block: allow bio_for_each_segment_all() to iterate over multi-page bvec")
Cc: Omar Sandoval <osandov@fb.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
---
 fs/gfs2/lops.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c
index ef68bf6232e7..15deefeaafd0 100644
--- a/fs/gfs2/lops.c
+++ b/fs/gfs2/lops.c
@@ -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);
-- 
2.14.4


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

* Re: [PATCH] fs: gfs2: fix build failure
  2019-01-16  2:16 [PATCH] fs: gfs2: fix build failure Ming Lei
@ 2019-01-16  2:52 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2019-01-16  2:52 UTC (permalink / raw)
  To: Ming Lei; +Cc: linux-block, Omar Sandoval, Christoph Hellwig

On 1/15/19 7:16 PM, Ming Lei wrote:
> There is one bio_for_each_segment_all() not converted, so fix it.

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

-- 
Jens Axboe


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

end of thread, other threads:[~2019-01-16  2:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16  2:16 [PATCH] fs: gfs2: fix build failure Ming Lei
2019-01-16  2:52 ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.