Message ID | 20240702234008.19101-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 5AA23C31D97 for <linux-mm@archiver.kernel.org>; Tue, 2 Jul 2024 23:40:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DAEC56B0092; Tue, 2 Jul 2024 19:40:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D5D356B0093; Tue, 2 Jul 2024 19:40:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B628A6B0095; Tue, 2 Jul 2024 19:40:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 924A56B0092 for <linux-mm@kvack.org>; Tue, 2 Jul 2024 19:40:52 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 247CF4023D for <linux-mm@kvack.org>; Tue, 2 Jul 2024 23:40:52 +0000 (UTC) X-FDA: 82296435144.11.14818A7 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) by imf20.hostedemail.com (Postfix) with ESMTP id 71BFD1C000F for <linux-mm@kvack.org>; Tue, 2 Jul 2024 23:40:50 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=LHF+QvSM; spf=pass (imf20.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.42 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=1719963627; 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=jHXFaDKKpM4wPj0SsPzoA5iT48dNhq95fIw694vj4eI=; b=Hn0HWkyjOaLJ5Y5JO0nIXkwx4m+3aYjoD/mrsklSkYzef6Dks9KDX2m4gkFARb5JiU2BYV QVo4ql0lEOPrM1irMTEWm+w4Yjvn2G8ux+Qgrc0TFP0Qnh2F9dYFVAHMIPXcKXBRg8blcE 7i5wSx0SXyxauM2SGIVthSkPkZd72Qs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719963627; a=rsa-sha256; cv=none; b=D+suxCfgnZQDEg9OJPQRDd0BqIfKPkdCh5ikqjIymEDxNYO93HlAKnagZHmZcBW18Ur82j 2XCSXnEsS+A+c/vxjX4gCtetFT3ZAfhzl5zaruhk17WT42Mbc9MDNLdRJSY88jLD/Nt0sF lm4xF8tZM5XQgYb5wyWLxaKzY3KTGmo= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=LHF+QvSM; spf=pass (imf20.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.42 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a6265d3ba8fso494105066b.0 for <linux-mm@kvack.org>; Tue, 02 Jul 2024 16:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719963649; x=1720568449; 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=jHXFaDKKpM4wPj0SsPzoA5iT48dNhq95fIw694vj4eI=; b=LHF+QvSMhDK60/ApZIhrZh1GURftuj+iF7NBj7drH3oOEjLnFQerC/q5mV5sMwoLfo WkIDrtK3viZ9ck7kP1laoF0g1TQ2NVHZoo/J+O6xmn84+SoiLQZBLgfZkP4PGbahfka7 9gqQ5jLyaYvnKb1ir38NLvcbuH+nwBY/uha5ZtCp4/ClUMnIAViqGFey98di2erOdBEZ AxlRrhgueFyYlMx+ElAZf271mVdl9G99QQ7o17Y//11DfKKPkStl0nyi7E4IraAkeFRT scyoa5u6nZYTgtejTeLUlmEzfMOByLZKLQ8APohw+qpR6yfxIZU6ffCTBv0b8wDAUEhP 7h8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719963649; x=1720568449; 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=jHXFaDKKpM4wPj0SsPzoA5iT48dNhq95fIw694vj4eI=; b=wfnslaVK2Gne6HSBsT7vygzusnecx/a6fCu2A5n1BpffJyUEt+B9kIfchFDV5hYaav A8atCx7AaZ4cJYNOI1gVsKztjROkGpyRtniJP1RJIJbSAmXOXIyUJbyK5BK2RPOidNmn aCfHMPABnHzegelt1smQjs6MJtckr554/tR6ELn872QV3F6Yng0OI3ZmRQoZ4dmpPdPQ gimncyqLB52dsnYtsO0F3n0GSZd0BPyHYRJJ4gThvqeF+S9yO6c1wE4aEKheXX0z4bl8 SJI5yZCXhwKlFlQJ5P3aYFAyKuIgJ6eqm4SmOHNPC7f4l0KecDUzrSXeWM/vUPk9DO2f vYyw== X-Gm-Message-State: AOJu0YyCkxKIysUwi1URfjCHRNZlN0MxAOUIdKk9Dm+4O2CRkCRajcFW 5sWU2bOXUE6m3YuatY9oU2WWBzlV46WwTDW861S6nnr49aA04AHa X-Google-Smtp-Source: AGHT+IHRcFART3FMaK+lcYezZZDGikjxHPokwTlNpfHogv3kaOgAi/zLeAumptvDqvHEJD8cdJPrYQ== X-Received: by 2002:a17:906:a28e:b0:a6f:55e8:b361 with SMTP id a640c23a62f3a-a7514423236mr519869166b.41.1719963648601; Tue, 02 Jul 2024 16:40:48 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ab08cfccsm459701666b.148.2024.07.02.16.40.46 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jul 2024 16:40:47 -0700 (PDT) From: Wei Yang <richard.weiyang@gmail.com> To: akpm@linux-foundation.org, masahiroy@kernel.org, nathan@kernel.org, nicolas@fjasle.eu Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Wei Yang <richard.weiyang@gmail.com>, Mike Rapoport <rppt@kernel.org> Subject: [PATCH 3/3] mm/page_alloc: put __free_pages_core() in __meminit section Date: Tue, 2 Jul 2024 23:40:08 +0000 Message-Id: <20240702234008.19101-3-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240702234008.19101-1-richard.weiyang@gmail.com> References: <20240702234008.19101-1-richard.weiyang@gmail.com> X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 71BFD1C000F X-Stat-Signature: 7em8kxeq54bqqj1qwu8bpjx57xd51yeo X-HE-Tag: 1719963650-593729 X-HE-Meta: U2FsdGVkX19Lj1iMR0sy6gPGkZyEUuqVRo6RNzYd9QjQie8pMfkuhpcAXJqa/t3OP6Tx0N2V+KzZJdWnqFr+6c7AFKk+CXwLFzaorojpL62dQrKh3uPgZsNde2E3bWJfhp5NGDsoi7IwDqjOQETaYKvKjUW0iTPqoXlqLTDEMyHYvcqRcNr/+XttPg9Hiycw3lOWYN9ZXCwdYgkNw3GiKdU5zA/ER4ryAm3XaatX/GfDmBdHTkrxvMvfl8p/ae3C5lkuGMm3LA0f8b6BSPpSV+vTe1ic8ToUCrkRSgAzjmRKUQkv9gvJYm2RosJpe6/ODIRYfqsDGK4XiyA5FFnJ0u3gkL4KXVrDuQZsSNAOb+UP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q6UdL0ouGumWnA2DJrr/bDmPxNoETj16iZp7yj5NA6PgvzylApMPDPNieSCCO92M6S4= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000031, 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/3] mm: use zonelist_zone() to get zone
|
expand
|
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 480e4416131f..c46aedfc9a12 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1219,7 +1219,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, enum meminit_context context) { unsigned int nr_pages = 1 << order;
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(-)