Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5855490rwl; Wed, 22 Mar 2023 03:21:28 -0700 (PDT) X-Google-Smtp-Source: AK7set+61rp88ePcyls9Iq1fgbzI8jlRyVjSnROmLbeod/6TOMj1yJod27zdzsM/IVHaW2/j5CsK X-Received: by 2002:a17:907:2169:b0:933:4ca3:9678 with SMTP id rl9-20020a170907216900b009334ca39678mr6461185ejb.24.1679480487828; Wed, 22 Mar 2023 03:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679480487; cv=none; d=google.com; s=arc-20160816; b=oqAHfX2kYDunMscKpL/oOiYib+5QqzlaT7/8Ju6Nf1D9IdRgzIt1BFFiCkBgpFVS/H PJupDe419yxou54nUSlVeDoIsIBaWNCk9wJ8BtIykgRpyLKWi0Q1CIZthXZ0YKSRUqe0 I0g37SFN94QstNwo4azSi7egN1W60SxhG5dr81vl01XzbeouUMwdf1kod9E+9DCIFWVi f9PMH5+5MBmVpO8qRFE7p9BN+YhcNdWa5aY0setdEuHGZkJTgDFhgGmu6TW0xG9o5OJr OYZU044D764rs/g0CiUgzzjOPA2sX4AzX66SNnI62ZwlNPcoXq8tyiteN37ZNCcN5Wyu PxWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xlneObjkkCdJZrzS+wZNiLjAe4aUk4X1puUjb1Rc0HQ=; b=LfCfEhpRwJIaYdUuYJM46wov0Yl/LnCvO8yn9DLIqUIYXSfMW6/hFXCxRRH/3qu0F5 rZhlVF19rM/XkxBo2brMOGgUm7uwYUftiNDeRJ0xCW0cRM/1gc/lytjJ7WxDfSe0okY3 c1Lfy0v35lhvCBDHuIXmxUW6esdFsKqo0xIsaGBMFQZlLE1y8etYio+I7pjPRwXTSGjU cF0Le2vdeUwStVsfaNch+npw2O+b30SnnsVe6xRX+A+0WUSyvgcgbwt5sbMAHe2KMtvi wLjM8wUCSBHkTHhOR3QwNusmsZVNRHZngrijADlkWPPdYoHahUrYYZ2isBTKb6qLZJen MU9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mBldOBrr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a50fb04000000b004fef30e1027si15106974edq.621.2023.03.22.03.21.04; Wed, 22 Mar 2023 03:21:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mBldOBrr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229865AbjCVKJK (ORCPT + 99 others); Wed, 22 Mar 2023 06:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbjCVKJJ (ORCPT ); Wed, 22 Mar 2023 06:09:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED6385AB55; Wed, 22 Mar 2023 03:09:08 -0700 (PDT) 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 92C2961291; Wed, 22 Mar 2023 10:09:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09DA9C433EF; Wed, 22 Mar 2023 10:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679479748; bh=zgcC6CFHZEkI+Y2u0uiAz37vl2FpD8zXEz7zQwJ3YgI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mBldOBrrjEJQyxaaZp7OQNB1SSqzEmP3LPBASeMLFq0NxHJmyy8pb62xgPTuT2rrl 6K8u9Y1zqQsnpQNjWOjqedrMPvF8Ypo1JOQyHcV3iZmDCTNcgSenm66S3/vV/eZCe5 NO8+Sg8q0OXzMRCkokx03NpJ38tNXVfmxv4EyRljot5UFqB3fTTN/zABBuocnmCFUO 48I7P+cBAHwLRO0bfnYpe8HnrTETSbOT6/UUrcOQ1MiJgQsljMY/ULuROdwFH/Uy7o f+DA0TznZBkO3xGTPxfNMjQCylCW0GGRUysXlecbKAq2nUlUo0tzBF2nc5vWiaraJ2 MBpKTrjx2sUtg== Date: Wed, 22 Mar 2023 12:08:53 +0200 From: Mike Rapoport To: Sergei Shtylyov Cc: Andrew Morton , David Hildenbrand , Doug Berger , Matthew Wilcox , Mel Gorman , Michal Hocko , Thomas Bogendoerfer , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 08/14] mm: call {ptlock,pgtable}_cache_init() directly from mm_core_init() Message-ID: References: <20230321170513.2401534-1-rppt@kernel.org> <20230321170513.2401534-9-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 22, 2023 at 12:06:18PM +0300, Sergei Shtylyov wrote: > On 3/21/23 8:05 PM, Mike Rapoport wrote: > > > From: "Mike Rapoport (IBM)" > > > > and drop pgtable_init() as it has no real value and it's name is > > Its name. oops :) Andrew, can you replace this patch with the updated version, please? From 52420723c9bfa84aa48f666330e96f9e5b2f3248 Mon Sep 17 00:00:00 2001 From: "Mike Rapoport (IBM)" Date: Sat, 18 Mar 2023 13:55:28 +0200 Subject: [PATCH v3] mm: call {ptlock,pgtable}_cache_init() directly from mm_core_init() and drop pgtable_init() as it has no real value and its name is misleading. Signed-off-by: Mike Rapoport (IBM) --- include/linux/mm.h | 6 ------ mm/mm_init.c | 3 ++- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 2d7f095136fc..c3c67d8bc833 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2782,12 +2782,6 @@ static inline bool ptlock_init(struct page *page) { return true; } static inline void ptlock_free(struct page *page) {} #endif /* USE_SPLIT_PTE_PTLOCKS */ -static inline void pgtable_init(void) -{ - ptlock_cache_init(); - pgtable_cache_init(); -} - static inline bool pgtable_pte_page_ctor(struct page *page) { if (!ptlock_init(page)) diff --git a/mm/mm_init.c b/mm/mm_init.c index bba73f1fb277..f1475413394d 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -2584,7 +2584,8 @@ void __init mm_core_init(void) */ page_ext_init_flatmem_late(); kmemleak_init(); - pgtable_init(); + ptlock_cache_init(); + pgtable_cache_init(); debug_objects_mem_init(); vmalloc_init(); /* If no deferred init page_ext now, as vmap is fully initialized */ -- 2.35.1 -- Sincerely yours, Mike.