Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6598458rwb; Wed, 18 Jan 2023 07:10:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXuV+wK8ZgdLh7WLuMKwEuI5WGEKG/mVJbj+Oh2aU09pWpQ3ry4HJXD2E4dydmT3I/4g91hd X-Received: by 2002:a05:6a00:4515:b0:575:d06d:1bfa with SMTP id cw21-20020a056a00451500b00575d06d1bfamr7730753pfb.2.1674054637629; Wed, 18 Jan 2023 07:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674054637; cv=none; d=google.com; s=arc-20160816; b=KDCKUqcdL8Fhh7axz17dHp1GPkujQUc5QsNJzcEbt5QEHodGoWEZU1hXix0jJKR6o0 sStsVVt4c6wYKKYVcj4sptJK+dcmW+nr8+1ROBV2qYes9Sw7tFSmgXYGpjFonhObmvms 3W6SpMY5FpPaXDj+aH1YiMyiMopJvCsFHa7g8WNdN7CgScxZ7MZrZZsncAyNtROLB+6p ssHHqMQi6dHtH4vHZcD3WvvAzXPLx4r0EttVVnsRRg9HLt+x99vY5QJiNcQmURJhu3VV b7oie5TEz7zUwTzekf5VaI3y0+jEYDEwFLEiY2JWunV8O5tpONCem6WU/2ZPRAqT5sjk cN0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4+fJwlk16Zd5YKVL2Mq5ebFB+FCSi11Z9DNVGCEEgBI=; b=UmRR2X5mhMpQ4fOakkIgyEgJYmN8QIYGw1Ui2aiVEvgrqVdPTMJ/k3ZE4vrtdmjMne ZZc0t6jkDdWG8tEXskcXRimdhgB+MCDUGQgSw9x67poh5zD1R7tBSdPcwXX/ZkchRJsk /0WziP4S1zYU+X336NxO1iAU9EdNJ3hSBkAOkttDVBtHHc7JpL6zz5MPzuF5CtV7Vzla 31Nlacd8ElGV7Hni00pTO0NAaKbDbP2Zbluj8J1P+Y0EuLjUTEKLdS3BBPQomBHpF+b3 Oqef+jeu+qC0OpGbR6GKvrm/zzUN8S6h7C6NM8NJF0b89ulOpd/lb7ZTqp3SEcE5MH9n AQIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=pSDnmoWu; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a056a00125200b00572f3be59f6si35580731pfi.136.2023.01.18.07.10.31; Wed, 18 Jan 2023 07:10:37 -0800 (PST) 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=@soleen.com header.s=google header.b=pSDnmoWu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231597AbjARPE0 (ORCPT + 45 others); Wed, 18 Jan 2023 10:04:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbjARPD6 (ORCPT ); Wed, 18 Jan 2023 10:03:58 -0500 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93652658F for ; Wed, 18 Jan 2023 07:02:23 -0800 (PST) Received: by mail-qv1-xf2a.google.com with SMTP id m12so21897539qvt.9 for ; Wed, 18 Jan 2023 07:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4+fJwlk16Zd5YKVL2Mq5ebFB+FCSi11Z9DNVGCEEgBI=; b=pSDnmoWudr37hWRG2OAmB7PzheSpU8qtllgEpPNxTSn9qsp4QhwGnjzJwB/IkcC/m1 Klo+Vg0ROcz3560T7mPYdl3jSutyaaldf21kH5EmixuHcrIR5Ae4kBqI3hLwCdz7TQ/y rhjYFDIJANmNr2LTdeWXiug8bToml0PjMnR9+ikcR8wEJuN/Ald3rNRPwWwwrwrPUKj2 U+PorV1hJniW5/ut5oB6smCurs1igrh6QMUGu1CxCO8ejK7QVVaEvzp13ler5US5pBG7 QQO4TJA4S6I02aqUqR2k6q5N5d35J4+HPHH0AUdVUS28BIon9iPGHGFAJ7S7C4aZhk14 tLaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4+fJwlk16Zd5YKVL2Mq5ebFB+FCSi11Z9DNVGCEEgBI=; b=cbVcKhmOF50QAhJvdQWRzlANEcoV9eRY1G7PRTnx5IK4Az92+uUF0s77vzb3UtDw3i T5LizkZMKbGBjH0KuJwQb7uy/HB+XYDShaADwmDdKOLU/f1RCnHXYvVgMM8UxfUgIQRX gTpfIhpafR3gsHM6+YG0KtSvzgTGxste2d08MHv6V0mh6W6ybwgGcv8OToo9KHSVX2dz VPzJKE4BKIyFqXknCJrgvORB350G2khYUVMCkAEXOoeG4FmyJxaeHUqREQspRllIoB5Z +Jv9w/YwkUNQ1MS8/W6a1LoCUjrZ1yu/8U0KD0SCBC/Q29O5tVQJygcVxIw7+AtOtoly DinQ== X-Gm-Message-State: AFqh2koxPLl4eib5lbHsO6+9cB2seHfH/gKnzVVHuXSLCybO/sOkDbld EsJumsh0DNH1ge5Q8awGMbTgHt3+wG1lRsy9uLIf/jj9lQyIDw== X-Received: by 2002:ad4:4242:0:b0:4d4:de23:9203 with SMTP id l2-20020ad44242000000b004d4de239203mr432972qvq.48.1674054142683; Wed, 18 Jan 2023 07:02:22 -0800 (PST) MIME-Version: 1.0 References: <20230117204617.1553748-1-pasha.tatashin@soleen.com> <20230117171312.13bdb3b2673bdac3c93c2ab7@linux-foundation.org> In-Reply-To: <20230117171312.13bdb3b2673bdac3c93c2ab7@linux-foundation.org> From: Pasha Tatashin Date: Wed, 18 Jan 2023 10:01:46 -0500 Message-ID: Subject: Re: [PATCH] mm/page_ext: init page_ext early if there are no deferred struct pages To: Andrew Morton Cc: rppt@kernel.org, mhocko@suse.com, vbabka@suse.cz, david@redhat.com, quic_charante@quicinc.com, lizhe.67@bytedance.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, Jan 17, 2023 at 8:13 PM Andrew Morton wrote: > > On Tue, 17 Jan 2023 20:46:17 +0000 Pasha Tatashin wrote: > > > page_ext must be initialized after all struct pages are initialized. > > Therefore, page_ext is initialized after page_alloc_init_late(), and > > can optionally be initialized earlier via early_page_ext kernel > > parameter which as a side effect also disables deferred struct pages. > > > > Allow to automatically init page_ext early when there are no deferred > > struct pages in order to be able to use page_ext during kernel boot > > and track for example page allocations early. > > Compilation blows up with CONFIG_PAGE_EXTENSION=n. I did Thanks, I will update the patch and send it soon. Pasha