From patchwork Tue Jan 2 13:12:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gang Li X-Patchwork-Id: 13509016 Return-Path: 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 47292C46CD2 for ; Tue, 2 Jan 2024 13:13:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CE3916B0133; Tue, 2 Jan 2024 08:13:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C92E96B0135; Tue, 2 Jan 2024 08:13:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B0D296B0134; Tue, 2 Jan 2024 08:13:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 9E5906B0132 for ; Tue, 2 Jan 2024 08:13:39 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 7897C40795 for ; Tue, 2 Jan 2024 13:13:39 +0000 (UTC) X-FDA: 81634412958.07.C1F0939 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) by imf03.hostedemail.com (Postfix) with ESMTP id C387220010 for ; Tue, 2 Jan 2024 13:13:37 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=LLGCqrdb; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf03.hostedemail.com: domain of gang.li@linux.dev designates 95.215.58.174 as permitted sender) smtp.mailfrom=gang.li@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1704201217; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=uwJWRA1Ti2ov5Iev54G7xXAXLlg2CRbAiefTt3ZwHf4=; b=ljadoNnLZ5BVkbkMtjNDgfPr2RGiwdP3Pkh4I0yXse78cbUL1f5EWQKnvyi4ANvyIiUt2N j2g7/sZfVpv+ivqjcko6CGr9gDAgtZw0InrzJHtrVN30bHfQb1NCf2CGI3R+5qoKT247cx Lm1RHF61STiyXm3zXMrbred5+/2p+qQ= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=LLGCqrdb; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf03.hostedemail.com: domain of gang.li@linux.dev designates 95.215.58.174 as permitted sender) smtp.mailfrom=gang.li@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1704201218; a=rsa-sha256; cv=none; b=FUDtOgMYrOvhbB919YkmRaFs//3vc2vuesoBlLQyWX0ZhXiVOUQig1p9caVDMRev1SRYRE QukXrsM0OX8c5L5nvDSZv9PgNF5W5eGbGeOR5ewBxQ60AQqDwf62o8Bx6vNgixG4uB+qtV G65l2OKCHY+zNnrY0ejn+V4oZT6oIKM= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1704201216; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uwJWRA1Ti2ov5Iev54G7xXAXLlg2CRbAiefTt3ZwHf4=; b=LLGCqrdbm54bgGR02vZyuR1VdBL4mcjuR/BGT/9+I895KeZ7fyx+zd7BxXb0RBDzZmE25q AMVfKXgVW6wXKRG7kBGALWtRZYvIMnFzhrilIzjsqIv/oXeOP1qJqaKxBRlTDA+uY6LEko g3MUn0pBdC3pivvQ/woTMSibZfbEMZQ= From: Gang Li To: David Hildenbrand , David Rientjes , Mike Kravetz , Muchun Song , Andrew Morton , Tim Chen Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, ligang.bdlg@bytedance.com, Gang Li Subject: [PATCH v3 5/7] hugetlb: have CONFIG_HUGETLBFS select CONFIG_PADATA Date: Tue, 2 Jan 2024 21:12:47 +0800 Message-Id: <20240102131249.76622-6-gang.li@linux.dev> In-Reply-To: <20240102131249.76622-1-gang.li@linux.dev> References: <20240102131249.76622-1-gang.li@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: C387220010 X-Stat-Signature: c6zixpswbq3h5denqa3fdt4grh4sijmb X-Rspam-User: X-HE-Tag: 1704201217-872531 X-HE-Meta: U2FsdGVkX1/V7J6gOlvhxgyKHdNBUvJ1T95AtAPqnLROr0kX2p3Zp3X6FnrNamGl1sWVsK2R+oBrZtdqZ8H0KH/HYQWfvQAv7HDgRTUXefSEmkIg4HPeAlilVqLqJ998ek/qxsiMrSM6W+CiPVX6OLvfdgwHvVgRZJfVkG8/ZpM7PUaWK4fX1IdmHJnk28kcysd8PqT1nbzBG4DpY4y9viO+ivxW8UvNujVpR4FR+0Dq2csi5yzyDemb93RNGIgXJXejXzfx/XJ5XPM5GGYFxHYTFJV3by3EQKkYuHcC1hUxmT2QBsCcYTeY9h9s9//Rgw6ecXDZ5iJqA8UN5KGbLSmwzNPrpJ1SCcvpMCBWK46itX2KMaqWXwMq/8yb5yIG4yJtlKeja8f9zyQwrJKCueJEKoTp4wlD52YddRNAxH8nbeYMTFR75pG/xn41XmeQ/PezJMOQibMU+4klvV+rsKshz3YDVqpbyhhybnd9kZ6VD3AoG0KlzehnTjNVm/k4hPmoHCDIUsMIMfdSbvDe9/iuYIVALCaLEWQOcRc4T+OepAGJ/byLaDvpYZGBn+TkfjFq0xitk2dbLwj0/vhZIbLenP3/pCdqsmkCFqFMJ2NtPyEok9qDMNFBEnboKAzwWbZZqFQ/rcZaRPmJjsNoOViRUIhu4/hKJsDBtkajrhpMFsa61+WQOZZjCEaIkdAdP2OIbJs3t5U1fQOFXNagCOoiebbCPGd1nY/jnEPARc6ICak98N4GTSYBJrVeuwt2+Zn5gyGDotdpuEWb7m7+QMjo1AtaKO7fpLldY2g3MXTX3hrNtRAvqW2l0wWPa2XWRv+Fi87LQ1f0emO4da1ybRtyUvVca9nTU34gaqKMvtS/6cCghYgb0c86OyQnShYn43TeM7ww4rX+tpdOa1aggIu4wosAvrtuRfAMT48PtbjihNbuMkNqS5kKDR8jfHZGSzGPINb1vHMIOpDPtAm YL0fiL1l 9wM96N3EmvQoe03kQJyprPmXNicsjUpzxj6EPaQAjw/ez1EMpM+LObk7sCby2UFhUL6K+Bx3u7bRwin72Zl3SgTDY1SustL9aYipdWuDhRZ/gcBv2EoFn3a9yieacXMQyOk1e 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: List-Subscribe: List-Unsubscribe: Now hugetlb uses padata_do_multithreaded for parallel initialization, so select CONFIG_PADATA. Signed-off-by: Gang Li Reviewed-by: Muchun Song --- fs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/Kconfig b/fs/Kconfig index 89fdbefd1075f..a57d6e6c41e6f 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -262,6 +262,7 @@ menuconfig HUGETLBFS depends on X86 || SPARC64 || ARCH_SUPPORTS_HUGETLBFS || BROKEN depends on (SYSFS || SYSCTL) select MEMFD_CREATE + select PADATA help hugetlbfs is a filesystem backing for HugeTLB pages, based on ramfs. For architectures that support it, say Y here and read