Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp764478rdh; Thu, 23 Nov 2023 18:38:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmyJFZCo1xUpjKu/l3lLHrO4bqNXlTgmms0tcPZBMiXkrRrYqZ8Ks9ms2bti2GsluDd9YO X-Received: by 2002:a05:6a20:72a2:b0:18b:e548:ada4 with SMTP id o34-20020a056a2072a200b0018be548ada4mr1204128pzk.20.1700793484114; Thu, 23 Nov 2023 18:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700793484; cv=none; d=google.com; s=arc-20160816; b=vCsNIdz8tWv33ATxRwlI0YQl3H+4C3uBK9I/6MbXrcv4zQuZGiPmddBwacdahggFgl 4OY33h1Rd6tPr/zYwL8WH3wCOCUbHBGewkI/qlnteNr97DLkf+hY+wBb3bH1BFyRdIes A5Q7EkNQEfPB4uPN7rxs1FsPBEqUVGSrMR6WTQmtmUG1KH3ddlZkpRlvaSfArf4CDUqN FG/aliQwxhOINgBNy2F42BYz+iWc1gbqcENVlr8d1x0sAR0l99mTrkhHriYRkjbTa69h 1jOvmmcmBfp/B0IoIjyMQfAX8mQOZ0MWa0tWm2aJEWn1IxKM7+1ROvGnPTyAfRej4jN7 NqHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=jTrWgPTmhL+pfMdbtv8oZ0hXd6mtQwXeT2Ul7xLq8pM=; fh=LbaducBrFKvtHEwZsPjJSjAOUSy0giVULP14ppD5DJY=; b=i7qeEofGjEMQLtBNuRWh5jXIL9yHJ0cCDGvqRRBPcll3M0fdBHEGpATf1vxjCnJntG cX/yHqCydbQVa3X2wSIggAQam6V5BVeCm4EL9YHGhGuFBnoexlX2Z8SlZfV8qqByEMDQ gmd87Svw+ELd7mTj2rZEeoefGHaUYIdAllJ4BO2bJn7Tphuc5o/8h0G/EaEZZueLSO9G yYXgrgyBVt8gC4X/KVkp+UqzGSXNCqaFu32lwT6vOE34D1y9hI4SJlTSj/4kTgUb/irT DStbqURScKSUXe0ngP2wD1rkIm0gzk1MRo9oDdLYiP8VN9vBLtNbrikbTizFUOYnUCcL mGYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rxOvgmZb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id pg9-20020a17090b1e0900b00280464bcd94si3209957pjb.130.2023.11.23.18.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 18:38:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rxOvgmZb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 93FBF805F49D; Thu, 23 Nov 2023 18:38:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231127AbjKXChl (ORCPT + 99 others); Thu, 23 Nov 2023 21:37:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjKXChk (ORCPT ); Thu, 23 Nov 2023 21:37:40 -0500 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [IPv6:2001:41d0:1004:224b::ba]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7008C11F for ; Thu, 23 Nov 2023 18:37:46 -0800 (PST) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1700793464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jTrWgPTmhL+pfMdbtv8oZ0hXd6mtQwXeT2Ul7xLq8pM=; b=rxOvgmZby8bs+M3u65ZmeIsiqbfYUlsFgcTKzcFbx4s3TWRBH3/Fy2bflm9Ge7uAnlhMg7 NRSN9f6J3N1rxV/qkm6ezPqAmqnkBD83WnvIhOO9PFpHKRVf5fljDi2N+FXichstd1OsF7 OsnIgQ0FQNEpn6Pdym/EEmcM2fMpV7o= Mime-Version: 1.0 Subject: Re: [PATCH] fs/Kconfig: Make hugetlbfs a menuconfig X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: Date: Fri, 24 Nov 2023 10:37:06 +0800 Cc: Peter Xu , LKML , Linux-MM , Andrew Morton , Mike Kravetz , Muchun Song , linux-fsdevel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <7830CCC4-B1E4-4CCD-B96B-61744FAF2C79@linux.dev> References: <20231123223929.1059375-1-peterx@redhat.com> To: Randy Dunlap , Peter Xu X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 18:38:01 -0800 (PST) > On Nov 24, 2023, at 08:19, Randy Dunlap wrote: > > 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? Yes. Thanks for pointing it out. Although it is not related to this patch, but it will be nice for me to carry this tiny typo fix. Hi, Peter, would you like help me do this? Thanks.