Message ID | 20240629013322.12364-3-richard.weiyang@gmail.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 30237C2BD09 for <linux-mm@archiver.kernel.org>; Sat, 29 Jun 2024 01:33:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A15416B0092; Fri, 28 Jun 2024 21:33:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 975476B0098; Fri, 28 Jun 2024 21:33:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 815CF6B0099; Fri, 28 Jun 2024 21:33:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 5B0CE6B0092 for <linux-mm@kvack.org>; Fri, 28 Jun 2024 21:33:48 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 0BC82409DA for <linux-mm@kvack.org>; Sat, 29 Jun 2024 01:33:48 +0000 (UTC) X-FDA: 82282204536.28.1BCC763 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by imf07.hostedemail.com (Postfix) with ESMTP id 4D56340007 for <linux-mm@kvack.org>; Sat, 29 Jun 2024 01:33:46 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jbSo552q; spf=pass (imf07.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.167.53 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719624807; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:dkim-signature; bh=o+ki2jLUWqWH3r6+HRoqUOjdfVn/SUqjMvg75SRoSQ0=; b=sFr/ljbmunnFwXqmvsmqe8WQv+OH8LsAL6NMR/9Qlaiwbta+Q6pPRNn0m0ST8GVX3M87T/ 8lS4uqmAIyPl4usyj+e+LJA4Rni3lb7SqIXw1/1bgDk2w3dzP0dADso70Rbyz16LqDSMfO N37HvkNQsR2PFGnp0YSGbVY+JKkHWDQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719624807; a=rsa-sha256; cv=none; b=sQP5Na8K+eJ759n9BQ/0Ai891zQk+/xlTNIxZ0obxUrH2yB0h3KdTEcdfoDpHoHNkf8vUE Ahx90mgc3koMZelYtGTtNZi6Nbz36j3P/W+19lhCZqhJ7mo9K5nrj4ZTNZubg/Bym5fghs MIQ3ipHSUbJvICBoIZE38w+DE9ZAu/Y= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jbSo552q; spf=pass (imf07.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.167.53 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-52e8037f8a5so329028e87.1 for <linux-mm@kvack.org>; Fri, 28 Jun 2024 18:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719624824; x=1720229624; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=o+ki2jLUWqWH3r6+HRoqUOjdfVn/SUqjMvg75SRoSQ0=; b=jbSo552qx4/BovYw2c0ow0tag+vwrucq96b/SApvjnkg487BJSbPaMxbmxDnjp9sSO 06Za556N6ITEOvfhT1lDZIQC7ebnZ6nVjd2TQ1h3Nfd5BkHr6mc+ekKImU8RYwKRNK8G EnkmAtMt3MYUv/mo3pKTGXRAQ+w2E+Wxkc6toqc9r7dqfd5+zN5J+2LoqdcMEVd5kzTD 8twrhA4WnS3yzquTOg868rC3/G3X2YJtB+cKAw84I2xj9luTbJTEnPBMQt1NBNAljj9U /WUHTDkblptpAl19i/XuGxSYtJ+2ZURJvU9Csi7rZsqrsqaMBISjQebW1QLBfUtVdCf3 bGVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719624824; x=1720229624; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o+ki2jLUWqWH3r6+HRoqUOjdfVn/SUqjMvg75SRoSQ0=; b=oGyhx1+9PiYqTFWUChfCNTXgzDqFzh6pJujMlPZk+DZh0TbxW8kCHjux+UqIubOo8o jy9CSQE9usaw0K6jfNqwy9cRlRPE0O+4epm668r92XnDWwo6Z+HoZXZMffHCayVfIDzD CV3Nx//2PQENplyMB+xxMwdaajLYE+3DkodnzTSk2h8rnj+S5RjMYBuu5omHvx4IITzA jCOvpZOJAgfS8RH7HRHfGcHdmkmkpkwPv4NEicYzSqhAQP5ll/EvGz2P1FeSZdY/I0jk L4tnnf7huR2SdCWpuo3nKjlTBDsdAFqz5L6G5j8KYKwMHWyVy0miktW6ACizGTMxLiAr LoUQ== X-Gm-Message-State: AOJu0YzdcOoYi6ZNshw+y4xBhfmPb4L+au9htcjtbQzbuvgTlLYx9VkB Gb6HCuGQXvk//U80sLoGSDSCxyrn67jB3J5XKfFHtmPVw46dpciTsZNS+shM X-Google-Smtp-Source: AGHT+IFJYnFjXkpittDIRh6ZykI0K6XuwphJGOVHl5Hj3DgI4b3bPxOPO8M5GapzzhkgsoEby/kssA== X-Received: by 2002:a05:6512:3e0a:b0:52c:e3c7:941e with SMTP id 2adb3069b0e04-52ce3c799f0mr17248849e87.47.1719624824466; Fri, 28 Jun 2024 18:33:44 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ab0651d4sm123431566b.112.2024.06.28.18.33.43 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Jun 2024 18:33:43 -0700 (PDT) From: Wei Yang <richard.weiyang@gmail.com> To: akpm@linux-foundation.org, rppt@kernel.org Cc: linux-mm@kvack.org, Wei Yang <richard.weiyang@gmail.com> Subject: [PATCH 3/4] mm/page_alloc: put __free_pages_core() in __meminit section Date: Sat, 29 Jun 2024 01:33:21 +0000 Message-Id: <20240629013322.12364-3-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240629013322.12364-1-richard.weiyang@gmail.com> References: <20240629013322.12364-1-richard.weiyang@gmail.com> X-Stat-Signature: 84b78n9hsdakotjimsp4b5rddpfmi3s7 X-Rspamd-Queue-Id: 4D56340007 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1719624826-214650 X-HE-Meta: U2FsdGVkX1+OVFoUE1z6Y0ml1aTTgjdqn1V8S7WdBsIbjLIRnyaTUSpHWZfRNYJfKtW/qgQi0NSf+k+AJPE3q4XvV/DOYnMNwoBzC6mpdmjo4t62quKP6SVfTkUVyFTgrn8gYhxgmdrlNF39bDsMUXCuVp26cgIASYp5OAYfRs7Rx/+WSVOhAHApom3FYbrAX7I8kS/bDpMT5GBkxQghQchUz3Xuknr/wK/xIP9OUEP2BmsyvAT8cY3/5iP5MOj6fjP6DZ7vuX9si5JEHjZVdopF1Lll1r2OKxFfQuQwgTWkQ6uJ+WUBbBPTbE54f9yrcqP0YyUBY18JeQxl2Bnehf0lmdCdAVdEIlXjB7gT86qxcNpND0GD3RwgfdPoljmBd8OTV0qU5CyYI6wei0X3T/JMAnBb0pf5rT9a7q9M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QV4MeXrzpFY= 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 |
[1/4] mm: use zonelist_zone() to get zone
|
expand
|
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 9ecf99190ea2..51a47db375b6 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1218,7 +1218,7 @@ static void __free_pages_ok(struct page *page, unsigned int order, __count_vm_events(PGFREE, 1 << order); } -void __free_pages_core(struct page *page, unsigned int order) +void __meminit __free_pages_core(struct page *page, unsigned int order) { unsigned int nr_pages = 1 << order; struct page *p = page;
Function __free_pages_core() is only used in bootmem init and hot-add memory init path. Let's put it in __meminit section. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> CC: Mike Rapoport (IBM) <rppt@kernel.org> --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)