Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3000023imm; Thu, 24 May 2018 20:52:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo7g3JOT31CIeYNp8m+7HO3noOQY94lkOyMpadm0WNuQzemWxNvuJZkckSuqFuqxGRvSJAG X-Received: by 2002:a63:7e1a:: with SMTP id z26-v6mr613683pgc.339.1527220378540; Thu, 24 May 2018 20:52:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527220378; cv=none; d=google.com; s=arc-20160816; b=qZ8I1wnxcbQHo8Y2HMvwX7LYNnpQlT8o0hi2J4OJv+/c+GPWJtIuiMULZhNLnWXoc3 aKz18d9aJHX5RD03Puo5FsF2Mm3y0Y2sVKXzacKrloB7eyM+luwhmPfp+igIyLBG4ily 0Og0WyvZ90U4BTTyuRqgQMZEcL+zNZkOxMKIc/kFRY3chtb2zM703GmniofVPGUE5EJw 92NAF6SWAdVEhUFkaQlNqyb+TcfLCBWHjCO1fwr/GYGibJCBvMjkqATiBjvfwdm2EGyM F8iaThduVf0/1AIYVm6mLwdRb8vpD+89AokCVkdX/wlkX2NtAfHXRaYIH2TrXK2mwYsB 35Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=GF3VljejI95ltvL/6AAMJZ63OEjzXmTmYi1LocvP6ZM=; b=rUnD32RIBEO+w+P0XfviQvPcotp65WE1FqN/ATRd1FLdqCzGO20qtyV9w65F6ZBzdN kvmrlNTXoEyaPqR+Zhp0D3wXnQTLJ6oP33hLGypeoltGtBTuZqSuI0Nn+PWV5qE42akJ MX8OXilekqJg6McfCD6TgNm6r2w4+sBVYHwH1wuexnNlStvTiDhpcHelBe53Fo8Wkqf0 BYEg14/adqDJN4JmDJDVV4Pqk0jUQBY9MAhaIncSNssepEBfMMxgWgb4a6WGnBRID4qa u0ahgS8Or5GIkyfNf2OEFqsM/mijLZ+6UqdpayNmLMErc2BsG/VgsV0szPjxkn9WFgbE Fipw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7-v6si11880175pgt.559.2018.05.24.20.52.44; Thu, 24 May 2018 20:52:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935879AbeEYDwD (ORCPT + 99 others); Thu, 24 May 2018 23:52:03 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41590 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935394AbeEYDwA (ORCPT ); Thu, 24 May 2018 23:52:00 -0400 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:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.9.5