From patchwork Fri May 25 03:46:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 10426133 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 D433C602D8 for ; Fri, 25 May 2018 03:52:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4A27295A6 for ; Fri, 25 May 2018 03:52:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B97B5295B3; Fri, 25 May 2018 03:52:02 +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=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4653F295A6 for ; Fri, 25 May 2018 03:52:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5BD486B02C2; Thu, 24 May 2018 23:52:01 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 543F36B02C4; Thu, 24 May 2018 23:52:01 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3E79B6B02C5; Thu, 24 May 2018 23:52:01 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk0-f200.google.com (mail-qk0-f200.google.com [209.85.220.200]) by kanga.kvack.org (Postfix) with ESMTP id 0AC3C6B02C2 for ; Thu, 24 May 2018 23:52:01 -0400 (EDT) Received: by mail-qk0-f200.google.com with SMTP id q185-v6so2891518qke.7 for ; Thu, 24 May 2018 20:52:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=GF3VljejI95ltvL/6AAMJZ63OEjzXmTmYi1LocvP6ZM=; b=CNMJ/sg6UkSvzRKp+3lOfvxjtDA/wstFe9yHjIiU4TxvHkclnx+1EZ5Do1WVyMbISV 4M8JxDdFwL8Q3cvEszjCl7h+9lrHgpMNKC0rBNcc3rpOEv8DJy0Ce20GQCQwr6YPoSra ArwEBSGwjGwTGEM+rBmiYkaEKlO35SK0biZFrlGCxCncsfYG8nTsha6jkS5tbxGwV0F0 CcGtD7NFXEKmO1vsGZb7N7vOYiSKaSwKlBqW1Gj826yAUnQgeSNrXZXGpEKFKwzYJu9T ZjdcZSddAYjnyThqRxo2ZhXRdrBiURL2FVqGQDcnH8Q+x/scRFpdcEZHB7WjyZopJJOG 1rvw== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of ming.lei@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=ming.lei@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: ALKqPwfttlpI4+xTwIJDDC3//E4IOTZ0u5I2jc+Y6nCu6y6+KTbJeDCl gKd2kgZyOnUux5B5L6lD/vGJb9SctkQYxy6j7FD+jyuWXhuc3re3Dw+24HuUZflMMQ21q3I0F3R 1ztyT+zjPIR7bA10zIagCCG9GrHaQhtdiO96talsnX8vQYG6gIQAlGkSlwrHRDmiyfQ== X-Received: by 2002:a0c:d8ab:: with SMTP id q40-v6mr594694qvj.83.1527220320846; Thu, 24 May 2018 20:52:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIXlLomb/svKrcSkcv0ywuezF64EZpNswb+M3Hzw04PCPcElESZRrWA9Yg9FQAtNt0XM9fN X-Received: by 2002:a0c:d8ab:: with SMTP id q40-v6mr594679qvj.83.1527220320338; Thu, 24 May 2018 20:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527220320; cv=none; d=google.com; s=arc-20160816; b=LRS2677K6Hj8W/dGjy5HTFDCttHl5QZTI+y5bIMDQrC5k/TU56iKjIxBzuE7kVugJu xahCJZ+c1ALty+B2ZtSBM8qxi76T4TQGaPvPwbAirhIkgEEQAZF3VXeQXFmekPTcGmdL T9yOBoSs8M3FHqtaUs+3HrLs06xnkp9VdO3352H+4zV1XJKD8K1+YDxol4wR7z7o/Nql +xBQezxaUrLYqY3b9GU4tQZ0t6OTcG30Kh9T9gYcGUFE6SDbZs1jFLyIWf38YXk9zT6A /mTcau4QzuPiPwK9y4ZpwhLU6xt0hMkQ9UT3O3tWo99hx3YG9rejyYy1WwIO9Wb7CleR xJSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GF3VljejI95ltvL/6AAMJZ63OEjzXmTmYi1LocvP6ZM=; b=LN4FM8nyhmQXDO8o2ngMDsHqdv1AepZ/AD5ZxvOnow7XvRRfUSO/JPpqWS8JEn/AuN 2foScUW/rOLSvP/gNZfAsj70lNvMeiRu5MlUgHJoWALrmGap5yfhTtsbA+KpJ+MwOPLy 9yaHlIpRxFWIpRCyRtD7FWJUyHKQOk8/zjq0K1loryvkVBvI8DNOUZK7bY+kcP1+Ufa5 +isii6Z1yR/VLzhO0qQ0xHUhL2GKZGC8aWl15+elrpt2x/qemU1ipnWw0E7PyvngjeUr FRIIb0CZ7bXhEC3OX5XQ20/VyJUovUTMcX1qeaU1yKBpsHR0jf5jySi4JNdboMGYuWYn cnDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ming.lei@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=ming.lei@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx3-rdu2.redhat.com. [66.187.233.73]) by mx.google.com with ESMTPS id c6-v6si1847013qvd.163.2018.05.24.20.52.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 20:52:00 -0700 (PDT) Received-SPF: pass (google.com: domain of ming.lei@redhat.com designates 66.187.233.73 as permitted sender) client-ip=66.187.233.73; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ming.lei@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=ming.lei@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 00B0C401EF03; Fri, 25 May 2018 03:52:00 +0000 (UTC) Received: from localhost (ovpn-12-30.pek2.redhat.com [10.72.12.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id B9A8B83B8B; Fri, 25 May 2018 03:51:50 +0000 (UTC) From: Ming Lei To: Jens Axboe , Christoph Hellwig , Alexander Viro , Kent Overstreet Cc: David Sterba , Huang Ying , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Theodore Ts'o , "Darrick J . Wong" , Coly Li , Filipe Manana , Ming Lei Subject: [RESEND PATCH V5 28/33] block: kill bio_for_each_page_all() Date: Fri, 25 May 2018 11:46:16 +0800 Message-Id: <20180525034621.31147-29-ming.lei@redhat.com> In-Reply-To: <20180525034621.31147-1-ming.lei@redhat.com> References: <20180525034621.31147-1-ming.lei@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 25 May 2018 03:52:00 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 25 May 2018 03:52:00 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'ming.lei@redhat.com' RCPT:'' X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP No one uses it any more, so kill it and we can reuse this helper name. Signed-off-by: Ming Lei --- include/linux/bio.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/linux/bio.h b/include/linux/bio.h index 5ae2bc876295..c5e692d43f23 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -159,8 +159,10 @@ static inline void *bio_data(struct bio *bio) /* * drivers should _never_ use the all version - the bio may have been split * before it got to the driver and the driver won't own all of it + * + * This helper iterates bio segment by segment. */ -#define bio_for_each_page_all(bvl, bio, i) \ +#define bio_for_each_segment_all(bvl, bio, i) \ for (i = 0, bvl = (bio)->bi_io_vec; i < (bio)->bi_vcnt; i++, bvl++) static inline void __bio_advance_iter(struct bio *bio, struct bvec_iter *iter, @@ -225,9 +227,6 @@ static inline bool bio_rewind_iter(struct bio *bio, struct bvec_iter *iter, #define bio_for_each_segment(bvl, bio, iter) \ __bio_for_each_segment(bvl, bio, iter, (bio)->bi_iter) -#define bio_for_each_segment_all(bvl, bio, i) \ - bio_for_each_page_all((bvl), (bio), (i)) - /* * This helper returns singlepage bvec to caller, and the sp bvec is * generated in-flight from multipage bvec stored in bvec table. So we