Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp703561rdh; Thu, 23 Nov 2023 16:19:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1raXeFfdy9vuo4vy4rj1xVwsJItI7qxOtGhy+mj+Chqtn3aHyUETNe94KkeI4Y9nV1Agj X-Received: by 2002:a05:6808:3194:b0:3b6:3d44:4d75 with SMTP id cd20-20020a056808319400b003b63d444d75mr1421958oib.22.1700785188653; Thu, 23 Nov 2023 16:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700785188; cv=none; d=google.com; s=arc-20160816; b=gbb64XfcGYkwBPONesyP3kjW3EZ8GCe/USq3KKoaH3BFudSlryzpUpqsLksHxiB4WW uIgMOQrJVaGJ30fezPZC4GPWbIlrAa+21YTa0qc+0xKnvMUKwCksky5qSkJ9+8a34uJe h67upPAX5qMEGw8lQPYtOoKfSOqy5DhMym9VCMTmKTmqBbrEdb/egTU9QqgTgrshbDNp aWG/9aOSgo7RnGZDdsSluUeyfO2StzyNQElbYcUZk3LnxK33Sh3I8BRBGpfqjmWer0Cw pmIlQMBRDVpCqr/S9u1Ensh8Eh11PYtwSlzvKTzkHBSMExy4jyq3ycQ9KXphpQ35zUv/ FLRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hdx62OaweghTuxJKy40I6uvLAL8EQr33RCrXQ1/BSAM=; fh=9XqQ8X4ADQ3BJDXjDZ2bwdj6V/QOXlHflgV7MU3xZRw=; b=EoyQUM9wGn0rvi1/P/ThbYNLkExRBX7eMWH9vx9NmyqW9U//xW74JNCOt6fhGa93Bq cc3DAxjhq3qCUXA4pCC0LcjuvGEtQn4r+J9feTY/yyyfEq9XbYF7RydbbHgUCUpOnLyT dLssqXWLD5BQYOfIRVmejAoYxP3FkwYf0cCPgoRC/bEmPKd/ugGI12UuXLobrc0reV1r blv1jkhctl77FLVM0fjykMRkhqRrevfXhXYSNIx87s4QdBH9yHNPdKIYWBsvtkkFVcll OhCj31sWPvzS6INAZzlsb2qSPEEjCrDDVDTO5B7EqDUXF/WzIeTpflDUA0PlxBg+YFvr N79A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qoMKvIi5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id be14-20020a656e4e000000b005a9fde46f98si2595773pgb.52.2023.11.23.16.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 16:19:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qoMKvIi5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 48F5381CC84D; Thu, 23 Nov 2023 16:19:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229910AbjKXATf (ORCPT + 99 others); Thu, 23 Nov 2023 19:19:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjKXATf (ORCPT ); Thu, 23 Nov 2023 19:19:35 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB14110C8; Thu, 23 Nov 2023 16:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=hdx62OaweghTuxJKy40I6uvLAL8EQr33RCrXQ1/BSAM=; b=qoMKvIi5r5oZJ2h7x8vFmUTFH/ 6RnF4ojppprty21w1nQzLV+gYTyUE4lCmMtNjsF2raI02Tj2zpioiEHk4QGyt4w80YieSspGf2fnF RdZRC9oVIcBI16G2r6MR/+OK8pEpqzFEY+VmTHuFOVKFA72Hxy3SU2K/MPEWO7wtkEbOOfJtCRU+t Fb+CxW/aGVJPIEp7iveJx5p/wbXkbqzEWI4vun00r/uijzTewRLZ4jBALwZ2C79tsCA5CFVU7WWfd rGLd+dPY6HGv0OOdqjDDJEBd7/1eXu2bHnuKHns+Wwyz2AEoYtVgn6u7VCekpLJN+iDWmcJTUKdYi FPaTQFTA==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1r6Juy-005rtQ-0Z; Fri, 24 Nov 2023 00:19:36 +0000 Message-ID: Date: Thu, 23 Nov 2023 16:19:35 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] fs/Kconfig: Make hugetlbfs a menuconfig Content-Language: en-US To: Peter Xu , linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Andrew Morton , Mike Kravetz , Muchun Song , linux-fsdevel@vger.kernel.org References: <20231123223929.1059375-1-peterx@redhat.com> From: Randy Dunlap In-Reply-To: <20231123223929.1059375-1-peterx@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 16:19:47 -0800 (PST) BTW: On 11/23/23 14:39, Peter Xu wrote: > Hugetlb vmemmap default option (HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON) > is a sub-option to hugetlbfs, but it shows in the same level as hugetlbfs > itself, under "Pesudo filesystems". > Make the vmemmap option a sub-option to hugetlbfs, by changing hugetlbfs > into a menuconfig. > > Cc: Mike Kravetz > Cc: Muchun Song > Cc: linux-fsdevel@vger.kernel.org > Signed-off-by: Peter Xu > --- > fs/Kconfig | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) > > diff --git a/fs/Kconfig b/fs/Kconfig > index fd1f655b4f1f..8636198a8689 100644 > --- a/fs/Kconfig > +++ b/fs/Kconfig > @@ -254,7 +254,7 @@ config TMPFS_QUOTA > config ARCH_SUPPORTS_HUGETLBFS > def_bool n > > -config HUGETLBFS > +menuconfig HUGETLBFS > bool "HugeTLB file system support" > depends on X86 || SPARC64 || ARCH_SUPPORTS_HUGETLBFS || BROKEN > depends on (SYSFS || SYSCTL) > @@ -266,14 +266,7 @@ config HUGETLBFS > > If unsure, say N. > > -config HUGETLB_PAGE > - def_bool HUGETLBFS > - > -config HUGETLB_PAGE_OPTIMIZE_VMEMMAP > - def_bool HUGETLB_PAGE > - depends on ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP > - depends on SPARSEMEM_VMEMMAP > - > +if HUGETLBFS > config HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON > bool "HugeTLB Vmemmap Optimization (HVO) defaults to on" > default n > @@ -282,6 +275,15 @@ config HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON > The HugeTLB VmemmapvOptimization (HVO) defaults to off. Say Y here to Is this small 'v' ^ a typo? thanks. > enable HVO by default. It can be disabled via hugetlb_free_vmemmap=off > (boot command line) or hugetlb_optimize_vmemmap (sysctl). > +endif # HUGETLBFS > + > +config HUGETLB_PAGE > + def_bool HUGETLBFS > + > +config HUGETLB_PAGE_OPTIMIZE_VMEMMAP > + def_bool HUGETLB_PAGE > + depends on ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP > + depends on SPARSEMEM_VMEMMAP > > config ARCH_HAS_GIGANTIC_PAGE > bool -- ~Randy