From patchwork Mon Sep 9 16:32:19 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: 13797303 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 82FE6ECE577 for ; Mon, 9 Sep 2024 16:32:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EABEC6B0192; Mon, 9 Sep 2024 12:32:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E0A846B00C6; Mon, 9 Sep 2024 12:32:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D03C26B0191; Mon, 9 Sep 2024 12:32:29 -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 B152E6B00C3 for ; Mon, 9 Sep 2024 12:32:29 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4478480AF3 for ; Mon, 9 Sep 2024 16:32:29 +0000 (UTC) X-FDA: 82545742818.13.3F9D636 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by imf20.hostedemail.com (Postfix) with ESMTP id 47BE41C0004 for ; Mon, 9 Sep 2024 16:32:27 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=suse.com header.s=google header.b=KazpjFk3; dmarc=pass (policy=quarantine) header.from=suse.com; spf=pass (imf20.hostedemail.com: domain of mkoutny@suse.com designates 209.85.221.43 as permitted sender) smtp.mailfrom=mkoutny@suse.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725899520; a=rsa-sha256; cv=none; b=QwImlYYjiuQcZyTead19llfjJXuz0uS2WrMrYUdMsKqu/ZJ8kq9Y1e5WP5BEgECT0o1N9u /7PKYVYdaZSFMixqjaDwt9vHNFg5Mw8A3CJmjReqxuKsUss48Fib/f+VZt6P+ivZ3obDhY FM1mxxMa0qD7Dnvn3iSjPLyRva5nb8Y= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=suse.com header.s=google header.b=KazpjFk3; dmarc=pass (policy=quarantine) header.from=suse.com; spf=pass (imf20.hostedemail.com: domain of mkoutny@suse.com designates 209.85.221.43 as permitted sender) smtp.mailfrom=mkoutny@suse.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725899520; 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: references:dkim-signature; bh=01TvFQ8Q33lZ5OEXLtjKixrpDvHdGUhYpWD+3boosg0=; b=X7jVXUYupwjKHBKJsod/Y4kwJk76peQcBUeavEQP0Q//naNQkA2g9L+uUMlOXEJsC72osn 3UKgi+N3+Ol4P/HONa5EpyH1Wx+74SFRm+D3DUwlsB3dZ8q9ygSN+tEKO0LF9DB/co4o1w auaEJVqp3xDB+m/P9C8B+PbrfHG+D/A= Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-374c962e5adso2554206f8f.1 for ; Mon, 09 Sep 2024 09:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1725899545; x=1726504345; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=01TvFQ8Q33lZ5OEXLtjKixrpDvHdGUhYpWD+3boosg0=; b=KazpjFk3zCp2Wed+h3/FgEsJ9h9bLH+1QEweUUL4h5wJGrOk2zLR34KVmODHjbWLzd /u1Klx3T19jfR7VHOHgB5Up9zsUhvDXEVxLMoizkLDOQfGZYEUG4LHr8hx8YE1Hsl6xi Qhh5cO6EcKsok/oTJQSfFcQcjGJCNSlrPqsMtYIL0Re9JtAQBeFlNVnqAs4hBBKrL75L +j2hznX8prnJ/2di7PwNZydHEiGZF1MxjS9wMQHHRYF+EhVWo1/gxhdLNTZu7yTSj6X5 xc8XPw6M+xtE3sdS9JxPzhTiCXM0iTPVHjWBp5KbR7ryz/bqA7wEJqYuU91Aqf6Jvcxs QSzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725899545; x=1726504345; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=01TvFQ8Q33lZ5OEXLtjKixrpDvHdGUhYpWD+3boosg0=; b=hsn/MuY2/IRr+7/SQ2ni6OapqKuLTJYvRRC36kT9R75lQYHXpJvGCID3Q/FdfMTzzb qyDbDlNwyRdBMIzh/CK1r0GFYqqbGFbtzLH6VuDlNyz30I79liLo2GdgL9bLDjKUQuYp Qp8BGVifww7d4cN35DuWVKb7BqYfAAjU0/WupPdQGcIoGFn/5/r+DvQ431IGyGscmUL8 22lZSPtVAMduhstRvnw303+IBfUNDy3fKsKCUCfec/8JQyn44ct3blDwTYjX5oOXdqkB GciGvm1qmQ+ELgTOnNexxo3OOM3wZPZCUHtX7TFqRvXY2INWs7zLSBHcrA05DEhL/EkN g+1w== X-Forwarded-Encrypted: i=1; AJvYcCVI3YakbwL0OpDR2fb8TvhJxkLDvgp4v1TXpQ/Be/j7x6qsVc2Z1MuNbbB1VaVmN+MIbS9yq8a9gQ==@kvack.org X-Gm-Message-State: AOJu0YwbBgEEM41fmDlgpAxcuo+N+7zDcho0XZHds88VqdIjZlbtuGV0 aGSGPMrrc/L/GvwYbjIXptEW2rKPG+h2NM5U2iWiklwkNvMu+N0N1iGk82gh8Is= X-Google-Smtp-Source: AGHT+IEoB20U25poJ8OoF6N2TSMoqHcMm3X67rhrGHHhO2tZ7wzs4+DbWWaBCovC49KP4Vwd5vxErg== X-Received: by 2002:a5d:4ec9:0:b0:374:bd00:d1e with SMTP id ffacd0b85a97d-378a89e6350mr137262f8f.3.1725899545364; Mon, 09 Sep 2024 09:32:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 09:32:25 -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 0/4] Followups to controllers' v1 compilation Date: Mon, 9 Sep 2024 18:32:19 +0200 Message-ID: <20240909163223.3693529-1-mkoutny@suse.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 47BE41C0004 X-Rspamd-Server: rspam01 X-Stat-Signature: bfqpodw4xduk18kr8mq3wotzrg49q68i X-HE-Tag: 1725899546-363777 X-HE-Meta: U2FsdGVkX189XDYjVs8oY3V/zPQtm7ePb5tgu7b1xcaQQFnVH0ctc2JnQeZWTIxZzHKo6+TroHPtjM2D3gq4eaV87qi2WAVwuccq+e+tN0ECJtRWANYkd7k8ZIeyRtQKxPZL4D3FG8akrelHjVaoWk+mzunfVFeZ/txI7akZkvbNQjbILsMctbu7rPioWODu7/c5Wt1HovsbSbGYlnxkjog8X1MslsO8X3DZ4rosyFyz7TMQhtgqnRZ9pPyeCOnF3i5xdco0I7w7ZTTlwkgPOPTY/WqAXW6jaA6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ity=0.000004, 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 group of patches builds upon recent dissection of memory and cpuset controller v1 code to under a separate configuration option. The goal of them patches is to produce behavior that appears to v1 controlelr users same like if the controller wasn't compiled at all (and no change to v2 users). Plus there are two preceding patches with cleanups I came across when looking at the new code. Michal Koutný (4): memcg: Cleanup with !CONFIG_MEMCG_V1 cgroup/cpuset: Expose cpuset filesystem with cpuset v1 only cgroup: Disallow mounting v1 hierarchies without controller implementation cgroup: Do not report unavailable v1 controllers in /proc/cgroups kernel/cgroup/cgroup-v1.c | 17 ++++++++++++++--- kernel/cgroup/cgroup.c | 4 ++-- mm/memcontrol-v1.h | 2 -- 3 files changed, 16 insertions(+), 7 deletions(-) base-commit: 8c7e22fc917a0d76794ebf3fcd81f9d91cee4f5d