From patchwork Sat Oct 29 08:08:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9486035 X-Mozilla-Keys: nonjunk Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sandeen.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RP_MATCHES_RCVD, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 X-Spam-HP: BAYES_00=-1.9,DKIM_ADSP_CUSTOM_MED=0.001,DKIM_SIGNED=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.197,FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RP_MATCHES_RCVD=-0.1, T_DKIM_INVALID=0.01 X-Original-To: sandeen@sandeen.net Delivered-To: sandeen@sandeen.net Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by sandeen.net (Postfix) with ESMTP id F150719116 for ; Sat, 29 Oct 2016 03:19:28 -0500 (CDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966362AbcJ2IP4 (ORCPT ); Sat, 29 Oct 2016 04:15:56 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34054 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934307AbcJ2IPv (ORCPT ); Sat, 29 Oct 2016 04:15:51 -0400 Received: by mail-pf0-f193.google.com with SMTP id u84so3382445pfj.1; Sat, 29 Oct 2016 01:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XefLaFpXs0ge0L6HlmaDGhaDo5OqqzXjn0GM1sdS0/o=; b=IprjDtu6QKSgE+0jxeq16Exqd7t8hTHmV9DRUtmf8AZ44bGUMGaXgciT8f2gNDFsCP E60vL2z8Mci3U6nDhMrJKmB2JFxytHO73iROdUuTkQDanCYD4aD+HA14R/b/ZI4TXY93 PpXIwOEvwM77A97fnneg/ntYJsDzLLsss1Nwp4KJ6cRvGpRKv8eH58TW1OFq0yjIH6K1 UO5MfHjBCF2qzklFGg3UdgHQdO5S+dERSR1qm1iGR36wcYB0raPuqFflLq/p/fdG0HOS zU3YeQVAqtfvhCBxTHLNfuEP/TS1SnlRHy618Ob1REn2qo0Zt0NugYvTrvUDN0jN4oIg 8aWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XefLaFpXs0ge0L6HlmaDGhaDo5OqqzXjn0GM1sdS0/o=; b=NeArNlf9TJPzjVBggikvxmmVqo3jm+30JyS5F+Jdqj/afvZTdSLTvYgA+y5hHX/TKh XkMXCKtqU4FeNAwx/n1aMowLF+XB2wdbeTzAqw4zvT2vWLV29+asDbUSMDs/90DbuXMa a4I/Cc9R7+VDOmFVMSdAKf7F6faTyCCglWQcBkaA85q5VAtBJQ1v08iIdPJk7AFiB1wF dn3qU9uJtzoYOITD98aX5o8+9Evuuv5ShnJyNIWmOIkE/uGUekzND5sBUt1PNKpiFENn jVDst+CM6risO5JgGXIue9xlvnrEXiu80By29qNd9Mu2gCtms70skC6stPvM0wsQDFn2 tCtg== X-Gm-Message-State: ABUngvez4xsiCMJQgpFciSSb4vCo3D1xHzOThOoHQvuZPNTGvPuDTWyEruQ5pysrqY8LjQ== X-Received: by 10.98.88.5 with SMTP id m5mr32147643pfb.9.1477728950887; Sat, 29 Oct 2016 01:15:50 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id wc6sm23538324pab.47.2016.10.29.01.15.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2016 01:15:50 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , "Kirill A . Shutemov" , Ming Lei , Dave Chinner , linux-xfs@vger.kernel.org (supporter:XFS FILESYSTEM) Subject: [PATCH 51/60] xfs: convert to bio_for_each_segment_all_rd() Date: Sat, 29 Oct 2016 16:08:50 +0800 Message-Id: <1477728600-12938-52-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> References: <1477728600-12938-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 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 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);