Message ID | 20240817095122.2460977-4-wangkefeng.wang@huawei.com (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 F21CDC52D7F for <linux-mm@archiver.kernel.org>; Sat, 17 Aug 2024 09:55:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 215AC8D00D3; Sat, 17 Aug 2024 05:55:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0D7A08D00CF; Sat, 17 Aug 2024 05:55:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EB8348D00D3; Sat, 17 Aug 2024 05:55:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id CEEB28D00CF for <linux-mm@kvack.org>; Sat, 17 Aug 2024 05:55:41 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 95F381A05D0 for <linux-mm@kvack.org>; Sat, 17 Aug 2024 09:55:41 +0000 (UTC) X-FDA: 82461280482.02.846D445 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf10.hostedemail.com (Postfix) with ESMTP id 61F87C001F for <linux-mm@kvack.org>; Sat, 17 Aug 2024 09:55:38 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=none; spf=pass (imf10.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1723888464; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ss4JETdMoaJz3tU6jROR4vKh495ultomvTa+/QJ/dHY=; b=uCyH2VuVWKEDfeaR+B+ja20rafWdvEUa8eKsF+0xuSJHjD5CFa5fblsRLFz9kkt2gEvP0H LX7G/nh0c2acOmPlddE/9ZUabL75CM3ylFwWW43nsuF6xGfztGrJP82FuOwD2dIKBZiYOU L9263OOweO980T7e1NfhGpa2fATlLgM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1723888464; a=rsa-sha256; cv=none; b=MxW5Rro/vKSF+d1B/yXSWE2i4YecfZcWGnvWw6uSjDdKT0ihWyWxkvU1ROjNjIiKixn8t4 K9VcqL+w8rt8gCAejHkhjtazZ0+cQA0/McdlPjGBG7TqUGkyR1dCzM8mblBJ7pNniJ3NHd cSr4R0IoKCwSuPP3arrB/UtJBT3s6I0= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=none; spf=pass (imf10.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4WmDjr6H3Pz1T7Rn; Sat, 17 Aug 2024 17:54:56 +0800 (CST) Received: from dggpemf100008.china.huawei.com (unknown [7.185.36.138]) by mail.maildlp.com (Postfix) with ESMTPS id 8603F1400E3; Sat, 17 Aug 2024 17:55:30 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemf100008.china.huawei.com (7.185.36.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 17 Aug 2024 17:55:30 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: Matthew Wilcox <willy@infradead.org>, Alexander Viro <viro@zeniv.linux.org.uk>, David Hildenbrand <david@redhat.com>, Sidhartha Kumar <sidhartha.kumar@oracle.com>, <linux-mm@kvack.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH 3/5] mm: remove thp_nr_pages() Date: Sat, 17 Aug 2024 17:51:20 +0800 Message-ID: <20240817095122.2460977-4-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240817095122.2460977-1-wangkefeng.wang@huawei.com> References: <20240817095122.2460977-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemf100008.china.huawei.com (7.185.36.138) X-Stat-Signature: hnhcd4f79qki9tx3i7xdqr1mo134ucou X-Rspamd-Queue-Id: 61F87C001F X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1723888538-152876 X-HE-Meta: U2FsdGVkX18l17j8ToSX4sg8vH35mEgAj0JppKgtiW7xVpMuNDgJTCpv0Gvm8AfsmCeolRESJy64p1coidJaVkhy7PXHH+2fmreyGVu5qbLzJ82g+2OmmA/fNI5bbaUfTqGLveheuqNUz28vS2S7q74DDnPRA5pPoI0qZUeclWeHxsbeNe0KN3Z3oT/Etks4NE6E8xfSaSqEFZY4o94GSOkBoxiFklIINA96f+KEQNFjBpqIrlJn1BNXVDgUxEXP3ADtYIQP+BGsLcklzpZ2dbSsKaiRnnTtEEIKIJ+OHS5isP61+VGhrJcUn8IhTlPiEKOkpLDwl3FJjq/QUcSE2xRMbZSQFo0Xi/3PQC4W2iwJpoaPnCRw4TyHOyJaINTJjfix9DSeh+HxGLNlG+xMjlaRDcnFrpfpnHhAenO7JAcBm2CPGeL7KxE0xZNnmWLsDxra11AQhtMWWaEIJykoPaIBIEeSGt13fAL0YT4m7rgKkxC07CSwaq/YvdAS28W7PV6+8Nru02xlxVK1nO6M/TuRBQw8QC/gp2DLQ9x4NThxqwmyk2e/vjSo0f4HIMyNCutXYIXHJC7NTmzU4MrK2nBEWWcz5yikpSrdpGB4FYcq1IAtnPN4Nd04Y1BD7bAXcej8Zh18JqTQD7ZyFKTsXV/iT9N4mkTl+mZ+vrVeb/rs561GeXT2VOPAkgrEXdh6krMAIYBfoZEbKMLTV/RgBbFbxzeCzNcgaInm+mMuHGBP415HWis9POcasJ0odg8VJ3cZRrnY3OXiSugWeddwrTXj6SBC4j74zxc0PvN3WYtghTQO9mAaIZh+jKWidIINYZtjW1SLzoM5ohleoqorMhh8RGVW41J/yh9FJjgVyzj+KeBWKne6BT+0vYGhG1rKhWYf/wmUApCbOPDrINcixRGDt7Xkxl9sOkYceqPh8wBpX8oWuBzUYBhfFo0sFZlVjhB6bSgA24gjmYkGxHC 0POP2nEA qyKqj5rvP9kWv9oK573s+cOJNaUDTO2mLME/EmWFpjMnrOiGFJz5jhK/fqcVTGPBRz15pS3F1y6bZbcrgbPFjHIhIb0njTUNYHEMd4PxjVU74KyySdwsL4ElGegTQjV9p8TZx72xdeGOjhQ7ESjJrErNk2gb0Vv2wSKEDsRBWh7CYvbvLSE3VWPYO1pfwmxVaGhU5 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series | mm: finish three more folio conversion | expand |
diff --git a/include/linux/mm.h b/include/linux/mm.h index 653287396808..d6a1b8356a31 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2065,15 +2065,6 @@ static inline unsigned long compound_nr(struct page *page) #endif } -/** - * thp_nr_pages - The number of regular pages in this huge page. - * @page: The head page of a huge page. - */ -static inline int thp_nr_pages(struct page *page) -{ - return folio_nr_pages((struct folio *)page); -} - /** * folio_next - Move to the next physical folio. * @folio: The folio we're currently operating on.
There are no users of thp_nr_pages(), remove it. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- include/linux/mm.h | 9 --------- 1 file changed, 9 deletions(-)