Message ID | 20211208042256.1923824-16-willy@infradead.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78598C433EF for <linux-mm@archiver.kernel.org>; Wed, 8 Dec 2021 06:20:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 334D46B007D; Wed, 8 Dec 2021 01:18:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E40B6B007E; Wed, 8 Dec 2021 01:18:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1ACC46B0080; Wed, 8 Dec 2021 01:18:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay033.a.hostedemail.com [64.99.140.33]) by kanga.kvack.org (Postfix) with ESMTP id 0BA776B007D for <linux-mm@kvack.org>; Wed, 8 Dec 2021 01:18:55 -0500 (EST) Received: by unirelay08.hostedemail.com (Postfix, from userid 108) id DCD2F205D5; Wed, 8 Dec 2021 06:17:36 +0000 (UTC) Received: by unirelay08.hostedemail.com (Postfix, from userid 108) id 3CFB5202B4; Wed, 8 Dec 2021 05:33:39 +0000 (UTC) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 061FE20285 for <linux-mm@kvack.org>; Wed, 8 Dec 2021 04:58:40 +0000 (UTC) X-FDA: 78893421642.24.9C12A8F Received: from relay.hostedemail.com (relay035.a.hostedemail.com [64.99.140.35]) by imf02.hostedemail.com (Postfix) with ESMTP id 996BA80002 for <linux-mm@kvack.org>; Wed, 8 Dec 2021 04:58:40 +0000 (UTC) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 474E920A07 for <linux-mm@kvack.org>; Wed, 8 Dec 2021 04:23:14 +0000 (UTC) X-FDA: 78893332266.05.0B1330E Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf26.hostedemail.com (Postfix) with ESMTP id B01E920019C3 for <linux-mm@kvack.org>; Wed, 8 Dec 2021 04:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=qEOJB5zqrjmIjIMgFkQEnCrDBHeSM6KGmwYonkVVccg=; b=vj99tWu1MyReP+jzY/YAJWhNVE PHZjCc6Pivhz/Q9ENpqol0+nR60b2WugjfAeSEhB1LWNcfSnxdFswkB6r+fesy6E1jRQ9q6kJ8+zo xhelbKHgobmdMqubTl/xCBSm71n4RQGUBglLQi0z35Fe1a90ZQYhlU76sZM4/ZrTNgcyBRJGUE3FU FhE+wb16q6iolgmxvQVW0is3Xre7PW03hp9nmtbYVoKWnSpiWkYD/MZYm4tYbZsFSyzcftzp36ii8 EkbgRiDndw3cqyMhQdq+PV3GMC6dUkxG+GZLyGEdNBwaVtKoqe8UPstfH8xdNvgrs0iRCGCX8PB52 pLaup+Qw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoU3-0084Xu-8H; Wed, 08 Dec 2021 04:23:11 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org> Subject: [PATCH 15/48] filemap: Remove thp_contains() Date: Wed, 8 Dec 2021 04:22:23 +0000 Message-Id: <20211208042256.1923824-16-willy@infradead.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211208042256.1923824-1-willy@infradead.org> References: <20211208042256.1923824-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 996BA80002 X-Stat-Signature: yd1o4hmnyykkqf1scqdnrszmnnrn5rhc X-HE-Tag-Orig: 1638937393-802871 Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=vj99tWu1; spf=none (imf02.hostedemail.com: domain of FILTER%willy@infradead.org has no SPF policy when checking 64.99.140.35) smtp.mailfrom=FILTER%willy@infradead.org; dmarc=none X-HE-Tag: 1638939520-347107 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: <linux-mm.kvack.org> |
Series |
Folios for 5.17
|
expand
|
On Wed, Dec 08, 2021 at 04:22:23AM +0000, Matthew Wilcox (Oracle) wrote: > This function is now unused, so delete it. Looks good, Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 3f26b191ede3..8c2cad7f0c36 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -512,15 +512,6 @@ static inline struct page *grab_cache_page_nowait(struct address_space *mapping, mapping_gfp_mask(mapping)); } -/* Does this page contain this index? */ -static inline bool thp_contains(struct page *head, pgoff_t index) -{ - /* HugeTLBfs indexes the page cache in units of hpage_size */ - if (PageHuge(head)) - return head->index == index; - return page_index(head) == (index & ~(thp_nr_pages(head) - 1UL)); -} - #define swapcache_index(folio) __page_file_index(&(folio)->page) /**
This function is now unused, so delete it. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- include/linux/pagemap.h | 9 --------- 1 file changed, 9 deletions(-)