From patchwork Wed Oct 21 19:39:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 11849675 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A5F6015E6 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 2D9532417A for ; Wed, 21 Oct 2020 19:39:33 +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 2D9532417A 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) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 364A36B0062; Wed, 21 Oct 2020 15:39:32 -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 22C696B0068; Wed, 21 Oct 2020 15:39:32 -0400 (EDT) X-Original-To: linux-mm@kvack.org 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-Spam-Summary: 1,0,0,4eed6eb2883b2070,d41d8cd98f00b204,jlayton@kernel.org,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1437:1515:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3866:4321:4605:5007:6261:6653:8660:10004:11026:11658:11914:12043:12114:12296:12297:12438:12517:12519:12555:12895:12986:13069:13148:13230:13311:13357:13894:14096:14181:14384:14394:14721:21080:21324:21451:21627:21939:21990:30054,0,RBL:198.145.29.99:@kernel.org:.lbl8.mailshell.net-62.2.0.100 64.100.201.201;04yr7kiwhna6tyt8fhs7ka3h8uktbope4x9z6dexq9gqwr71m3bt6c8c9hforuq.tnqtzy6do8joqhyay97z19tdxc9ocpkn7kzt8gkdk135hoqujenwxoqmu535hux.e-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none 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 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 Reviewed-by: Matthew Wilcox (Oracle) --- 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 *pvec, 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); -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 = 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 */