From patchwork Tue Dec 27 16:04:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9489599 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 57E77601D2 for ; Tue, 27 Dec 2016 16:12:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 496CB223B2 for ; Tue, 27 Dec 2016 16:12:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E0D5201BC; Tue, 27 Dec 2016 16:12:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAD11201BC for ; Tue, 27 Dec 2016 16:12:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932937AbcL0QM5 (ORCPT ); Tue, 27 Dec 2016 11:12:57 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33052 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932916AbcL0QGZ (ORCPT ); Tue, 27 Dec 2016 11:06:25 -0500 Received: by mail-pg0-f66.google.com with SMTP id g1so12810977pgn.0; Tue, 27 Dec 2016 08:06:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=q0QjDYObl9uCwNH88wn+M4K32DYCelv3jASNennG14E=; b=lyhvWgkr4ULP2pavZ+40ELazNEZ2sytWvYx+hpSmp5YkKRS0mDgY196CHhnH6E14rS tvFswNig7VZGz9MXpucBm+IANmn/jxwEn9ZkAWM5bvZIT6XulxoobTJyUBBv2shV/Fe+ Zcq+pw++BZgFmzOTZtKuZJCKWeM7XelwNlqEMISPK9xqlAgV7CpGDv1EBxeKxBXAmohN 09WXoonmy7zamsSJDKtQMW8XoSXeCLUKEbK6lM2y52aB2rRDMda7vVO0XAW5gMVA21LS Bas9QxkWJ+JpX+qiU7LUuXnYWSqihMUEUG23AYVD0m1GApYNs3DvuJ0NuSSSHZSsoAJn B6GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=q0QjDYObl9uCwNH88wn+M4K32DYCelv3jASNennG14E=; b=E8FNU+Te+4evX3g+56rQUWxs3yYskiojJkB6dnCZAQVKnnm97PqL3x2uqM9yEYU38s dyvJQgaWehHL3X9EhHMHUr/V0vXlKSXi0DD5mU8z0BYZ5rrnPxrYXM97m7StIUt5IVCe J8Zsxsi6ycmmuLRlM2M8KB73AZfRIXFhll2viSz85hH9e2fKeGuCwUO6oEwfFW/Bj1Ug jkNXPFkHZazcOK93frbg1uC+VGJnlN0+mDHmANj21jYfGXA86lqSjfQcM9CYdRhBW82s MW2OY0YEpyBx3v9NmQx6FGX1ISxJkDRMhWnCpgK8+WmvGMwU0dM71CWS1dLyg5xhwvCf m2kg== X-Gm-Message-State: AIkVDXIAge/Kcf5zzQs3Vw+Hc80Akm6uDhOIebJo3M5dmoKoEj5s4nVeKT8VafUKZiW5iw== X-Received: by 10.99.38.3 with SMTP id m3mr59739327pgm.113.1482854784420; Tue, 27 Dec 2016 08:06:24 -0800 (PST) Received: from localhost ([45.35.47.137]) by smtp.gmail.com with ESMTPSA id a66sm88707574pfa.64.2016.12.27.08.06.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Dec 2016 08:06:23 -0800 (PST) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , Dave Chinner , linux-xfs@vger.kernel.org (supporter:XFS FILESYSTEM) Subject: [PATCH v1 42/54] xfs: convert to bio_for_each_segment_all_sp() Date: Wed, 28 Dec 2016 00:04:51 +0800 Message-Id: <1482854706-14128-11-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1482854706-14128-1-git-send-email-tom.leiming@gmail.com> References: <1482854706-14128-1-git-send-email-tom.leiming@gmail.com> Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ming Lei --- 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 0f56fcd3a5d5..1acd6162aec1 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -139,6 +139,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 @@ -150,7 +151,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_sp(bvec, bio, i, bia) xfs_finish_page_writeback(inode, bvec, error); bio_put(bio);