Message ID | 20220901120030.63318-11-linmiaohe@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 F0D5AECAAD1 for <linux-mm@archiver.kernel.org>; Thu, 1 Sep 2022 12:01:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ECDF48D000D; Thu, 1 Sep 2022 08:01:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DE8FA8D000C; Thu, 1 Sep 2022 08:01:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AFA768D0003; Thu, 1 Sep 2022 08:01:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 746A38D0009 for <linux-mm@kvack.org>; Thu, 1 Sep 2022 08:01:11 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 3EE63140FC9 for <linux-mm@kvack.org>; Thu, 1 Sep 2022 12:01:11 +0000 (UTC) X-FDA: 79863375942.05.27F2CB2 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf09.hostedemail.com (Postfix) with ESMTP id 73217140095 for <linux-mm@kvack.org>; Thu, 1 Sep 2022 12:01:08 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MJKM22D0KznTw3; Thu, 1 Sep 2022 19:58:38 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 1 Sep 2022 20:01:05 +0800 From: Miaohe Lin <linmiaohe@huawei.com> To: <akpm@linux-foundation.org>, <mike.kravetz@oracle.com>, <songmuchun@bytedance.com> CC: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <linmiaohe@huawei.com> Subject: [PATCH v2 10/10] hugetlb: make hugetlb depends on SYSFS or SYSCTL Date: Thu, 1 Sep 2022 20:00:30 +0800 Message-ID: <20220901120030.63318-11-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220901120030.63318-1-linmiaohe@huawei.com> References: <20220901120030.63318-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662033668; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fQKNuEYsr36aymjldWDmU1Kflf/KdP6ACTriYqjvZmM=; b=ORBCPDrkobTsRq5FPoDsrCChN7Hv5DxnIqDdNAZjLskg5Jp2TKGumlrAqJD0cpywCF5+eP 8pdrtE3uok/VEEAwbDrLK4Qt1ET6+ZGSmAHNioreOzj+BdQlP30+FAaINWa/goy1pbAGmz zmqrYXs4f+t5lxaVULImaIDkhM8Szl4= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662033668; a=rsa-sha256; cv=none; b=IIceVjHvdHv3DI4XJFofitPDlg+UCYqBVbgGDp/QsjYr3m/6OViQgefmm95CYEedw7aQTj yoTSZ39uJUPZfTyzLIVhKF2NczYrpUz73BeKOSe5d4DQYdZtzdS2lXnlepz4buYGuOgAG6 zradFYvbPld/3bhli2GOpzG9BURE7nE= Authentication-Results: imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspam-User: X-Stat-Signature: qnxpaimky817ez7mgz1s1yr4izgp3hjy X-Rspamd-Queue-Id: 73217140095 X-Rspamd-Server: rspam05 X-HE-Tag: 1662033668-570673 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: <linux-mm.kvack.org> |
Series |
A few cleanup patches for hugetlb
|
expand
|
diff --git a/fs/Kconfig b/fs/Kconfig index a547307c1ae8..2685a4d0d353 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -235,6 +235,7 @@ config ARCH_SUPPORTS_HUGETLBFS config HUGETLBFS bool "HugeTLB file system support" depends on X86 || IA64 || SPARC64 || ARCH_SUPPORTS_HUGETLBFS || BROKEN + depends on (SYSFS || SYSCTL) help hugetlbfs is a filesystem backing for HugeTLB pages, based on ramfs. For architectures that support it, say Y here and read
If CONFIG_SYSFS and CONFIG_SYSCTL are both undefined, hugetlb doesn't work now as there's no way to set max huge pages. Make sure at least one of the above configs is defined to make hugetlb works as expected. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> --- fs/Kconfig | 1 + 1 file changed, 1 insertion(+)