From patchwork Sun Mar 19 21:59:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13180634 Return-Path: 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 3F15DC76195 for ; Sun, 19 Mar 2023 22:00:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D1C2F900009; Sun, 19 Mar 2023 18:00:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CCD0B900002; Sun, 19 Mar 2023 18:00:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B9489900009; Sun, 19 Mar 2023 18:00:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A5C15900002 for ; Sun, 19 Mar 2023 18:00:47 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 62BFC1603CE for ; Sun, 19 Mar 2023 22:00:47 +0000 (UTC) X-FDA: 80587018134.03.8C95737 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id ACCA61A0010 for ; Sun, 19 Mar 2023 22:00:45 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fTcFp2H2; spf=pass (imf19.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679263245; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=p9nYhEji8q09j2pqGE1YEx7t+yWFyRXv7pJkAKXalmU=; b=AMwerHt87yOZNUaWIPKvxOhw8WwbLctfJKYISOulmmuvluLG7yapmmj0p2hgXCZUMfo/CT PjdHtWFs6qHLsmp4xKTEwUX5v5J09nBO7V4xeAbZnFCfQfljaA5CRg43k7afAaqrw2YTO5 NI1/aB4ndDkqNJDqecNIOxW1u06k9c4= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fTcFp2H2; spf=pass (imf19.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679263245; a=rsa-sha256; cv=none; b=qLMxRFa0Q/9Xepo8w39RaRa8i/gOfrKLqCR3ZRlypByTy2fyllUrU3BppmFOvUqtuuzFqI t1omus7or4ze3A4TY75hqUcqguU0TKcm1fSYzwTG/5V58Ms6KQAV0zaCXzMxly+/BT4y9l RsBco5mEyk/qhK3ej+SJK4dSOLtJ7+g= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AF0DE611D4; Sun, 19 Mar 2023 22:00:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80A58C4339C; Sun, 19 Mar 2023 22:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679263244; bh=IbslJwQtSp0K62Trj6TOitHikiCkl9yMUWR56UtzbLs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fTcFp2H2uu/R1vYPaYke53LsDbKWDgvSDvKi6CPldoQ/4qufDzX2VtUQ0zZ1Z/CFN NPPheSGYydZPKT/k0QdXU4FJq87qVBloqwv6g+zJzdsOpy64g6V1HlZIqFHbu5kUo6 MayyWZ9S797/6gOCwr9bEPdKm5KJEZG/tbH4xglxgNkQtyk2r12nS9dYcTgCRKmoHJ /CvzMpSJyTiyHCmEp2VDwtwLtMIjMial4FQA+bZYa9DcemqT0CXTyvjrnGzrs+2T+3 9+Bg3zKcIhgO0QtCAMyQkyUVGz+4V8M3zxYZCvAmlLvmuz8EbA26S/KcwArdLNVJ2r s5tv4IVeWfZ4g== From: Mike Rapoport To: Andrew Morton Cc: David Hildenbrand , Matthew Wilcox , Mel Gorman , Michal Hocko , Mike Rapoport , Thomas Bogendoerfer , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 06/15] mm/page_alloc: rename page_alloc_init() to page_alloc_init_cpuhp() Date: Sun, 19 Mar 2023 23:59:59 +0200 Message-Id: <20230319220008.2138576-7-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230319220008.2138576-1-rppt@kernel.org> References: <20230319220008.2138576-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: ACCA61A0010 X-Stat-Signature: 9nc4u3rmjc91eoabe4zcwmwtpxpuk43h X-Rspam-User: X-HE-Tag: 1679263245-753617 X-HE-Meta: U2FsdGVkX1+euMMWhjAYViXWOiAp2mDGAtpEU1uDAjqGlg+42xNm6JfnFxv0vbUc59lGMXSfP5g/2pO021FXNWtvZnJr7q1XXyOlo3Xsfo/6QLFtGqouJpnpPeicdmggGzfy0M2iHl/5wz4Uxb8Wfnov6a39NW7fm8BcklU49gaF+OAjOPCJUc21OB1O5Mi0lcpHZptqxVW+SrpbX1hTd/J3yBfT3Yt7VL0vo2OYy2R6Aj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dS5nxTN/RTLhGzxVTReq6oHAeyKMvc0VHn/ffQD652KEUOMYRqhHtRJ1viKB45nWz2x097HpV/w== 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: From: "Mike Rapoport (IBM)" The page_alloc_init() name is really misleading because all this function does is sets up CPU hotplug callbacks for the page allocator. Rename it to page_alloc_init_cpuhp() so that name will reflect what the function does. Signed-off-by: Mike Rapoport (IBM) Reviewed-by: David Hildenbrand --- include/linux/gfp.h | 2 +- init/main.c | 2 +- mm/page_alloc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 7c554e4bd49f..ed8cb537c6a7 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -319,7 +319,7 @@ extern void page_frag_free(void *addr); #define __free_page(page) __free_pages((page), 0) #define free_page(addr) free_pages((addr), 0) -void page_alloc_init(void); +void page_alloc_init_cpuhp(void); void drain_zone_pages(struct zone *zone, struct per_cpu_pages *pcp); void drain_all_pages(struct zone *zone); void drain_local_pages(struct zone *zone); diff --git a/init/main.c b/init/main.c index 4425d1783d5c..b2499bee7a3c 100644 --- a/init/main.c +++ b/init/main.c @@ -969,7 +969,7 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void) boot_cpu_hotplug_init(); build_all_zonelists(NULL); - page_alloc_init(); + page_alloc_init_cpuhp(); pr_notice("Kernel command line: %s\n", saved_command_line); /* parameters may set static keys */ diff --git a/mm/page_alloc.c b/mm/page_alloc.c index ff6a2fff2880..d1276bfe7a30 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6383,7 +6383,7 @@ static int page_alloc_cpu_online(unsigned int cpu) return 0; } -void __init page_alloc_init(void) +void __init page_alloc_init_cpuhp(void) { int ret;