From patchwork Tue Dec 27 16:04:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9489485 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 C70EA62AAD for ; Tue, 27 Dec 2016 16:06:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B98E8201BC for ; Tue, 27 Dec 2016 16:06:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA7CD25F31; Tue, 27 Dec 2016 16:06:34 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 6CAAC25E13 for ; Tue, 27 Dec 2016 16:06:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932797AbcL0QGY (ORCPT ); Tue, 27 Dec 2016 11:06:24 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35774 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932849AbcL0QGL (ORCPT ); Tue, 27 Dec 2016 11:06:11 -0500 Received: by mail-pg0-f65.google.com with SMTP id i5so12802251pgh.2; Tue, 27 Dec 2016 08:06:11 -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=iv4oDHnLRzbgOkxZmfJiW1R6isq2qGIXy5y4yDF0RkQ=; b=ZxocltAoLQATJaTlYMFwhFq7mLDkAP3ExWnYvwY3+NYKbfU2PNoiX1d1qeTljZDyI5 VZ5NQM7enkzJFYc9IEr9k1VuRICh+yx10JvIh5hPjPun/YwAJzrdts6yY9rhZlAOpHaq /wIaGsWKiwVWCLAoLcxx3e0drUCMYR93oF5CYBQngJCuzonpk89IkT3TVhJxvGTw8+xs qpS0B4P10gpSFAWy81g0vc/OVI/goxE3H8iboMu+ozXclZIWvxSS0zCniuRUCuuvvyo3 96RRyyQ0PpwFgctrSaztmYmQfMQ29fbH6LC+Tv6Bqj1szD5x64UmOA1MY9zmwiFyGgFg BFLQ== 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=iv4oDHnLRzbgOkxZmfJiW1R6isq2qGIXy5y4yDF0RkQ=; b=HwvCfJSglc2SU3dB85snewEaycJg95bKekPdmnsshmY4GeNteByC8hVuH/bVWCAO1X UvsOQ6XwNroVrABUnSGHciQpk6kZdbFJROhKcNbUq0QTDh53Rn9LkdYu4T7lN+oYmUI8 jWZpBxOz6YCysMNS4DTR2FL+I6nqp01zY03glQNrECIrZ3k1fndvlIkfJbQkO9t3iUFq +eWiyv+lUS8uBY3jK5d0F1cJ9t4w5kP+thuzGYtE2f6Nfg3ju4IrItIBs3d+QP0bZIoH 7rRKpS21E3urPIswgR24Fvzjx+6RFS0GMvZ2MfKc2PIwqTzR0rB6ZDBUEvAelyCOBRi+ DfXA== X-Gm-Message-State: AIkVDXIaau076brjSYP24Kc6eW0W2wAD+vj5G3+ePCvlJwXXGaqpHivkgKW3OZpRTnUCQA== X-Received: by 10.98.54.68 with SMTP id d65mr30302946pfa.61.1482854770323; Tue, 27 Dec 2016 08:06:10 -0800 (PST) Received: from localhost ([45.35.47.137]) by smtp.gmail.com with ESMTPSA id o24sm40344884pfj.78.2016.12.27.08.06.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Dec 2016 08:06:09 -0800 (PST) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , Alexander Viro , linux-fsdevel@vger.kernel.org (open list:FILESYSTEMS (VFS and infrastructure)) Subject: [PATCH v1 39/54] fs/mpage: convert to bio_for_each_segment_all_sp() Date: Wed, 28 Dec 2016 00:04:48 +0800 Message-Id: <1482854706-14128-8-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-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ming Lei --- fs/mpage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/mpage.c b/fs/mpage.c index 28af984a3d96..bd94b3dbf27e 100644 --- a/fs/mpage.c +++ b/fs/mpage.c @@ -46,9 +46,10 @@ static void mpage_end_io(struct bio *bio) { struct bio_vec *bv; + struct bvec_iter_all bia; int i; - bio_for_each_segment_all(bv, bio, i) { + bio_for_each_segment_all_sp(bv, bio, i, bia) { struct page *page = bv->bv_page; page_endio(page, op_is_write(bio_op(bio)), bio->bi_error); }