linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 51/60] xfs: convert to bio_for_each_segment_all_rd()
       [not found] <1477728600-12938-1-git-send-email-tom.leiming@gmail.com>
@ 2016-10-29  8:08 ` Ming Lei
  0 siblings, 0 replies; only message in thread
From: Ming Lei @ 2016-10-29  8:08 UTC (permalink / raw)
  To: Jens Axboe, linux-kernel
  Cc: linux-block, linux-fsdevel, Christoph Hellwig,
	Kirill A . Shutemov, Ming Lei, Dave Chinner,
	supporter:XFS FILESYSTEM

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 fs/xfs/xfs_aops.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
index 3e57a56cf829..974b0a516f1d 100644
--- a/fs/xfs/xfs_aops.c
+++ b/fs/xfs/xfs_aops.c
@@ -144,6 +144,7 @@ xfs_destroy_ioend(
 	for (bio = &ioend->io_inline_bio; bio; bio = next) {
 		struct bio_vec	*bvec;
 		int		i;
+		struct bvec_iter_all bia;
 
 		/*
 		 * For the last bio, bi_private points to the ioend, so we
@@ -155,7 +156,7 @@ xfs_destroy_ioend(
 			next = bio->bi_private;
 
 		/* walk each page on bio, ending page IO on them */
-		bio_for_each_segment_all(bvec, bio, i)
+		bio_for_each_segment_all_rd(bvec, bio, i, bia)
 			xfs_finish_page_writeback(inode, bvec, error);
 
 		bio_put(bio);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-29  8:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1477728600-12938-1-git-send-email-tom.leiming@gmail.com>
2016-10-29  8:08 ` [PATCH 51/60] xfs: convert to bio_for_each_segment_all_rd() Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).