[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6wm77ncacitv7fb2nc7sshpjjqshsh4xffey4qxhzu6oz4gevl@qehhysirzyhq>
Date: Tue, 16 Dec 2025 14:55:43 +0100
From: Michal Koutný <mkoutny@...e.com>
To: Chen Ridong <chenridong@...weicloud.com>
Cc: hannes@...xchg.org, mhocko@...nel.org, roman.gushchin@...ux.dev,
shakeel.butt@...ux.dev, muchun.song@...ux.dev, akpm@...ux-foundation.org,
axelrasmussen@...gle.com, yuanchu@...gle.com, weixugc@...gle.com, david@...nel.org,
zhengqi.arch@...edance.com, lorenzo.stoakes@...cle.com, cgroups@...r.kernel.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org, lujialin4@...wei.com
Subject: Re: [PATCH -next v3 2/2] memcg: remove mem_cgroup_size()
On Tue, Dec 16, 2025 at 08:34:40PM +0800, Chen Ridong <chenridong@...weicloud.com> wrote:
> In my v2 patch, I was reading the usage directly:
>
> + unsigned long usage = page_counter_read(&memcg->memory);
>
> This works fine when CONFIG_MEMCG=y, but fails to compile when memory cgroups are disabled. To
> handle this, I initially added #ifdef CONFIG_MEMCG guards.
Ah, !CONFIG_MEMCG, I get it now. Sorry for the noise.
Michal
Download attachment "signature.asc" of type "application/pgp-signature" (266 bytes)
Powered by blists - more mailing lists