From patchwork Tue Dec 27 16:04:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9489541 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 01730601D2 for ; Tue, 27 Dec 2016 16:09:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E86FA200E7 for ; Tue, 27 Dec 2016 16:09:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD35B201BC; Tue, 27 Dec 2016 16:09:18 +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 7EF0225E13 for ; Tue, 27 Dec 2016 16:09:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933060AbcL0QJO (ORCPT ); Tue, 27 Dec 2016 11:09:14 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35079 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933045AbcL0QHH (ORCPT ); Tue, 27 Dec 2016 11:07:07 -0500 Received: by mail-pg0-f66.google.com with SMTP id i5so12804246pgh.2; Tue, 27 Dec 2016 08:07:07 -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=FIAvnO1/sdGZzJVx3a8fBt514J2hPdKs6/VZ0AQVcRg=; b=fqpw/7p98/N+EMPVb912YZHOBthJ/ADE9XQP10bRetNJOGG0UdPMghjRan3tTqINAK nBizIBIRVIs0wi4KXs87nOfI/XYpoRWiGL1c9nsusBVHnVkzEmCX9OzK0BfFA1qwA5yB kR5zVi529DDwIeEad0Ix7G/5rwI+YoEySdjqyjOiY+W10qZSnwEO+s4TBop3+Ik2r1Lq pEtuCdjmZtvKvfRSEY8ors7TcZixpbCxYFdjM/gneTAUqoAZMcn8YOpycqwy+iJtd1ze p9Pem/DZMrufUPXI6yQDsWF7RCbgP6rGcxabPcYOyKt2q7JIYwYRZwcMKDwBi++aqb03 b4tQ== 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=FIAvnO1/sdGZzJVx3a8fBt514J2hPdKs6/VZ0AQVcRg=; b=Mwak6cCGEaUymcbp0BBGhNgdqaiF39umRL5dxN+A3q2uGPC5w7r/xrAB6YiSc0P7Oi NnOqqMId5jJWvuvcSm+190+yDdXmTmDOfaS9o+5acwDffaa7MjWsDyR1HPUjIop7yRqF ZEYd6K+Go9wLKeMiX+XlRAVmWSnq00KLlcGKBsSwE3DQf08KUI/QmwqZgJwGHNzN1UAb Ie7/EfoXPjPmmrryyqQJpHzRGZyoYnoEI/l8OFNx/zvN9K/UC7K3jugcOScq/LO3r0vO 6D5+fcnTJ9K0OP7A9Y9YqFu97p5CjfepV5lSYT/h7c87y07bgM5wt6FEQ9iz+vGu2rlC n/1A== X-Gm-Message-State: AIkVDXL8iGlNyVkMVk9Jyrn9yiMtBp1fx/ZEestjUACquyaGRO9AwWVFUSivmiMVcXO8jw== X-Received: by 10.99.108.8 with SMTP id h8mr58641595pgc.93.1482854826850; Tue, 27 Dec 2016 08:07:06 -0800 (PST) Received: from localhost ([45.35.47.137]) by smtp.gmail.com with ESMTPSA id y62sm26823983pfk.52.2016.12.27.08.07.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Dec 2016 08:07:05 -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 49/54] fs/iomap.c: convert to bio_for_each_segment_all_sp() Date: Wed, 28 Dec 2016 00:04:58 +0800 Message-Id: <1482854706-14128-18-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/iomap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/iomap.c b/fs/iomap.c index 354a123f170e..11da77b24599 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -698,8 +698,9 @@ static void iomap_dio_bio_end_io(struct bio *bio) } else { struct bio_vec *bvec; int i; + struct bvec_iter_all bia; - bio_for_each_segment_all(bvec, bio, i) + bio_for_each_segment_all_sp(bvec, bio, i, bia) put_page(bvec->bv_page); bio_put(bio); }