From patchwork Mon Sep 9 16:32:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Michal_Koutn=C3=BD?= X-Patchwork-Id: 13797305 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 05BABECE57B for ; Mon, 9 Sep 2024 16:32:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 77B586B00C5; Mon, 9 Sep 2024 12:32:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 72BDD6B00C6; Mon, 9 Sep 2024 12:32:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F35B6B0191; Mon, 9 Sep 2024 12:32:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 3B9E86B00C5 for ; Mon, 9 Sep 2024 12:32:30 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id F292840C3A for ; Mon, 9 Sep 2024 16:32:29 +0000 (UTC) X-FDA: 82545742818.11.E1594F0 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by imf28.hostedemail.com (Postfix) with ESMTP id 140D3C0005 for ; Mon, 9 Sep 2024 16:32:27 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=suse.com header.s=google header.b=dFmcYuRC; spf=pass (imf28.hostedemail.com: domain of mkoutny@suse.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=mkoutny@suse.com; dmarc=pass (policy=quarantine) header.from=suse.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725899446; 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:dkim-signature; bh=sobUieX7sbiSPYFy6bxdFPzYBPZvmuQtQFMPmLF111k=; b=Qni6Pt1A2IDzwjyrPaixKvhLcf5HFSJ7eNkDf2CiXR0FTjCyMdxMIJiMXvPHI2qeC/+OZw ZdGNTu0wrrLR0ijvJM1gZSyM4W+drL08EZV9OS9SWWCND/4m9KgSAOPZ8D23FUysEEfNOI luUUv0DQvUbRUHdq35LDDVgAA3DHxPQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725899446; a=rsa-sha256; cv=none; b=0p2nqWaV6twr3HfbBHR6VOC4kufSdSuMFZQr62PYqiqZunsy+LJtCbiO/rzKxk+z1pM1Aa GKfaSApIHT6kvd1ljaNOOTQ5RU8Qs6GvQFFG1qoaYGAGzSKbUurAJg0LBs4ecju51/QdEa FfIF0homU+787n26gAaZ+Lk3+jcWxH0= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=suse.com header.s=google header.b=dFmcYuRC; spf=pass (imf28.hostedemail.com: domain of mkoutny@suse.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=mkoutny@suse.com; dmarc=pass (policy=quarantine) header.from=suse.com Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42cb7a2e4d6so11216175e9.0 for ; Mon, 09 Sep 2024 09:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1725899547; x=1726504347; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sobUieX7sbiSPYFy6bxdFPzYBPZvmuQtQFMPmLF111k=; b=dFmcYuRCA2+BmVVdbXcbOa01rj5cUj5RNDF3afM2zsAYwBlCp8Jj/lQF9oD1MBrn5q bB1QflDQzfhCOrUlDXNAmVnVkBk5WLFJHTPGEOS7d9ijTCt+dK0NPu5YBkDxVXBtG9sb daYotz8MH3fdjX73shdkuTXeAYWqnxpnc5uyHBkHyxTOKQnu4+gxIcm7eilGlUllIeeQ Oc93aEoUoLKIV3O8Uz8nnAhnANbxhZJoaL5kqlI7OsJpyg+BAFZfO7o/111R61xLZPAR AhL+oh0cb/SAoK8gx1PWiG5/og6sk688aukixKBsGb9wFvySw+FPvOauOaMarg7VygNy OMBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725899547; x=1726504347; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sobUieX7sbiSPYFy6bxdFPzYBPZvmuQtQFMPmLF111k=; b=jnp0hhXmZOdR5mc3em+XJGsC7SGERNVHkrujflyeeKfOBA8i4ildozzz1i3y1bEvJH Wtvt7FIw3TTa5+Vl/BQ6ZmaO/dEWDurKjILZQZax7zFpUKwryPItHn5sds/PsRJxaZ9f uCU+IXrIF0gKkvZTDGGgKtgBbUxFxKNWUGvysMstd9L1GFIJIjTxjWhahzd4abRD53dl eNG92HZPzQNqwu9v03+IpZYtbqW7VXK8g4LsP/4NJpe4+vht+UTKa3CkzVsH8FkirBQa a/FQ5BKB4a+ddzwkF4zdEYjI44izVDELlzaMViZO1hH/FA7mfKT5pVfZgTBuz+7/KH8P zabg== X-Forwarded-Encrypted: i=1; AJvYcCX4WAlUrfgO+TFtXZjJ+4xG17ev/gZBc8vBNi5Y778bvBu4U3oAPqPpOd3BO3SbyPYm73P2AoVkCg==@kvack.org X-Gm-Message-State: AOJu0Yxoy2hz44KsdgfG3XAOOOus5Phg056SiVn5YEqudwYgRbJ81qh2 OA+MNZmJfcXMBByfaJ/yPFsVHEaGfQcuX7D6HJyHKXnu991G/QJlnAKM9zOA+kRiEGxU36hlWAi k X-Google-Smtp-Source: AGHT+IHP56w+Vwo326v4est5mKtZvXJI1kCa6K6pwhkIOZ6Q1r5Njpbo29H7KJ8jdrsk9xU+NzXgbg== X-Received: by 2002:a05:600c:1ca0:b0:42c:b995:20d3 with SMTP id 5b1f17b1804b1-42cb9952478mr18658765e9.26.1725899546518; Mon, 09 Sep 2024 09:32:26 -0700 (PDT) Received: from blackdock.suse.cz ([193.86.92.181]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3789564a072sm6478606f8f.2.2024.09.09.09.32.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 09:32:26 -0700 (PDT) From: =?utf-8?q?Michal_Koutn=C3=BD?= To: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Tejun Heo , Zefan Li , Johannes Weiner , =?utf-8?q?Michal_Koutn=C3=BD?= , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , Chen Ridong Subject: [PATCH 2/4] cgroup/cpuset: Expose cpuset filesystem with cpuset v1 only Date: Mon, 9 Sep 2024 18:32:21 +0200 Message-ID: <20240909163223.3693529-3-mkoutny@suse.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240909163223.3693529-1-mkoutny@suse.com> References: <20240909163223.3693529-1-mkoutny@suse.com> MIME-Version: 1.0 X-Stat-Signature: p7zk6xj9fkzb1ebo9i5pt3bdxisaqroz X-Rspamd-Queue-Id: 140D3C0005 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1725899547-825659 X-HE-Meta: U2FsdGVkX1+3hWv3bgJbpE1Hr1aVSw1vmNR+5ldy0aVhobYFlkgTz6JpaQabcPnbLLS34iPqDknaz3qTqoy6TuEQlctW+TmrqXQw3igW89SF2ujZNztLKZQDb83JTPTBjqWmzLM06ZhskKQPt6nHx0JegFXpasUpIMqt49zKaHpMTtl+9To7UItaA28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fXPEYD/qPhDv/1RExz/pK5pMS+j82ELyIa771yIcm8qJROsKcZs/ZSSthE0UbkujhKCHyDBeysER+xLljgaTxn47dG+pInMM= 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: The cpuset filesystem is a legacy interface to cpuset controller with (pre-)v1 features. It makes little sense to co-mount it on systems without cpuset v1, so do no build it when cpuset v1 is not built neither. Signed-off-by: Michal Koutný Reviewed-by: Waiman Long --- kernel/cgroup/cgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index c72e18ffbfd82..90e50d6d3cf39 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -2331,7 +2331,7 @@ static struct file_system_type cgroup2_fs_type = { .fs_flags = FS_USERNS_MOUNT, }; -#ifdef CONFIG_CPUSETS +#ifdef CONFIG_CPUSETS_V1 static const struct fs_context_operations cpuset_fs_context_ops = { .get_tree = cgroup1_get_tree, .free = cgroup_fs_context_free, @@ -6236,7 +6236,7 @@ int __init cgroup_init(void) WARN_ON(register_filesystem(&cgroup_fs_type)); WARN_ON(register_filesystem(&cgroup2_fs_type)); WARN_ON(!proc_create_single("cgroups", 0, NULL, proc_cgroupstats_show)); -#ifdef CONFIG_CPUSETS +#ifdef CONFIG_CPUSETS_V1 WARN_ON(register_filesystem(&cpuset_fs_type)); #endif