From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CB04C388F9 for ; Wed, 21 Oct 2020 19:39:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DADA32419A for ; Wed, 21 Oct 2020 19:39:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="JdYJCpmu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DADA32419A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3DBD36B005D; Wed, 21 Oct 2020 15:39:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 364A36B0062; Wed, 21 Oct 2020 15:39:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 22C696B0068; Wed, 21 Oct 2020 15:39:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0215.hostedemail.com [216.40.44.215]) by kanga.kvack.org (Postfix) with ESMTP id E6A246B005D for ; Wed, 21 Oct 2020 15:39:31 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 7E0E43642 for ; Wed, 21 Oct 2020 19:39:31 +0000 (UTC) X-FDA: 77396946942.09.leg80_2c08a2a2724a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin09.hostedemail.com (Postfix) with ESMTP id 6254A180AD802 for ; Wed, 21 Oct 2020 19:39:31 +0000 (UTC) X-HE-Tag: leg80_2c08a2a2724a X-Filterd-Recvd-Size: 2947 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf06.hostedemail.com (Postfix) with ESMTP for ; Wed, 21 Oct 2020 19:39:30 +0000 (UTC) Received: from tleilax.com (68-20-15-154.lightspeed.rlghnc.sbcglobal.net [68.20.15.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 74D1824171; Wed, 21 Oct 2020 19:39:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603309170; bh=JfNSHQVgtLi5ZPQULQA1L2A3faL8Q2GF5AGfEShV/H8=; h=From:To:Cc:Subject:Date:From; b=JdYJCpmuybrj5SG5GibFZFTFFQT/qjT3K3SpGvdDJkUMf203MutJUq3lfV+EvnwH0 lA2Rz7TkpoyfZg5z4nwLbkkJfL/RTg4h/oYoxI/zuaDmaC0fvjPxxs7unibTBBuqsh dlhYuo911DKM0iddlOK/yBU7NAijU7iuZvE9ljEc= From: Jeff Layton To: akpm@linux-foundation.org Cc: willy@infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH] mm: remove pagevec_lookup_range_nr_tag Date: Wed, 21 Oct 2020 15:39:26 -0400 Message-Id: <20201021193926.101474-1-jlayton@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: With the merge of 2e1692966034 (ceph: have ceph_writepages_start call pagevec_lookup_range_tag), nothing calls this anymore. Cc: Matthew Wilcox Signed-off-by: Jeff Layton --- include/linux/pagevec.h | 3 --- mm/swap.c | 9 --------- 2 files changed, 12 deletions(-) diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index 081d934eda64..ad4ddc17d403 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h @@ -43,9 +43,6 @@ static inline unsigned pagevec_lookup(struct pagevec *p= vec, unsigned pagevec_lookup_range_tag(struct pagevec *pvec, struct address_space *mapping, pgoff_t *index, pgoff_t end, xa_mark_t tag); -unsigned pagevec_lookup_range_nr_tag(struct pagevec *pvec, - struct address_space *mapping, pgoff_t *index, pgoff_t end, - xa_mark_t tag, unsigned max_pages); static inline unsigned pagevec_lookup_tag(struct pagevec *pvec, struct address_space *mapping, pgoff_t *index, xa_mark_t tag) { diff --git a/mm/swap.c b/mm/swap.c index 47a47681c86b..1aca4b9c97fe 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -1164,15 +1164,6 @@ unsigned pagevec_lookup_range_tag(struct pagevec *= pvec, } EXPORT_SYMBOL(pagevec_lookup_range_tag); =20 -unsigned pagevec_lookup_range_nr_tag(struct pagevec *pvec, - struct address_space *mapping, pgoff_t *index, pgoff_t end, - xa_mark_t tag, unsigned max_pages) -{ - pvec->nr =3D find_get_pages_range_tag(mapping, index, end, tag, - min_t(unsigned int, max_pages, PAGEVEC_SIZE), pvec->pages); - return pagevec_count(pvec); -} -EXPORT_SYMBOL(pagevec_lookup_range_nr_tag); /* * Perform any setup for the swap system */ --=20 2.26.2