From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-40.mta0.migadu.com [91.218.175.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 804793C4551 for ; Wed, 16 Sep 2026 12:58:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.40 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789563494; cv=none; b=JtDwp15M+REahb/caSYe06FHBXWbpf8wTvAHWllphLwa+9+z+tIUJsS5K4SEkuvLst3jgaUm/Ga9YueLETRH+WfPhtGc75+RMid4njOvMkbRnm6/vorYfP/jxrwg/TJ1R9aUcx8ejlgNDBu5O+h4QXAkL/4FHYwsx5iNgR2DSt4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789563494; c=relaxed/simple; bh=bdXVZ1Kbw6bqlFSxE/MaNfB3RIbM8xtQX+eZUVejI94=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FhmeagA02FaSdHSCTOiDtEN1mqyLbhdHyX89mJhdO9Cf+yJnnPTOx0GvwHB86Pb0Ubj+smDWaEy6vI4LG/LZO/l5WP1b0ysH6YGDLcjBhb0Hiej3iq/WeUXJHNS7syx42AYtFrWw1OklHEfpE/ObYuwsfD1G7VJVf4tUTL2+twg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=pq2dSTG7; arc=none smtp.client-ip=91.218.175.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="pq2dSTG7" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=bdXVZ1Kbw6bqlFSxE/MaNfB3RIbM8xtQX+eZUVejI94=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789563490; v=1; x=1790168290; b=pq2dSTG7Q95TTIaQMizi0n5RB6McC4WDKKzoXmE6vWjaxc4iTbdPjsYAgbCeHS8ppbsrWyw0 tJQD6nm9hEqxjd0k9itvXFOfG4DJY6pCv488cr2OfNVNLxap8Qa2jm0fb9BMhtZTjwrhp3hJOpr +lbceArzVhgaKTqo2denBr9w= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 9a5d3f7511db98d0; Wed, 16 Sep 2026 12:58:10 +0000 X-Mizu-Trace-ID: 9a5d3f7511db98d0 X-Migadu-Flow: FLOW_OUT From: Tao Cui To: hannes@cmpxchg.org, mhocko@kernel.org Cc: roman.gushchin@linux.dev, shakeel.butt@linux.dev, muchun.song@linux.dev, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cui.tao@linux.dev, Tao Cui Subject: [PATCH 3/3] docs: cgroup-v1: note the v1 memory controller implementation boundary Date: Wed, 16 Sep 2026 20:57:37 +0800 Message-ID: <20260916125737.1095414-4-cui.tao@linux.dev> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260916125737.1095414-1-cui.tao@linux.dev> References: <20260916125737.1095414-1-cui.tao@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Tao Cui Document that the legacy memory controller is now isolated behind CONFIG_MEMCG_V1, with its state in struct mem_cgroup_v1, and that new functionality belongs to the v2 memory controller. Signed-off-by: Tao Cui --- Documentation/admin-guide/cgroup-v1/memory.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/admin-guide/cgroup-v1/memory.rst b/Documentation/admin-guide/cgroup-v1/memory.rst index 7d2a44af52c9..2eff1dc6e13b 100644 --- a/Documentation/admin-guide/cgroup-v1/memory.rst +++ b/Documentation/admin-guide/cgroup-v1/memory.rst @@ -8,6 +8,13 @@ Memory Resource Controller here but make sure to check the current code if you need a deeper understanding. +.. note:: + The legacy (v1) memory controller implementation is isolated behind + ``CONFIG_MEMCG_V1``: its interface lives in ``mm/memcontrol-v1.c`` and + its per-cgroup state in ``struct mem_cgroup_v1`` (see + ``include/linux/memcontrol.h``). New functionality belongs to the + cgroup v2 memory controller. + .. note:: The Memory Resource Controller has generically been referred to as the memory controller in this document. Do not confuse memory controller -- 2.43.0