From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9595F378D68 for ; Thu, 26 Feb 2026 02:40:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772073629; cv=none; b=eJ48Gae62ZQrY+CwuPJhVnyQRkD77+uNmNZq2lIvVXoQCcmFRXjmlCdIa5+SuD++/jkW/DCwGoBcytKHgreTtuCV928le6IEkbq1L2K6XD/jzTdyQZk2RYQONbFfR22WsIGmOAzjpGTOUPEuen21aSdGJlHq53oz+Og3v85iwDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772073629; c=relaxed/simple; bh=kRpE73dKflKGmiEgIaorNWmUEBz/yJiW+66DsA9Pbag=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rAqvC6Xr8h7ddwo/P6mj4uUXC7rRuo2lJHStm8WHXjiWt3BRExgV/g8Jb7BcKkjVQvROkZld4b/kfMBRgKCLi47f14MRqw6jyhB4Jaj45WqPz3DQzhZW63l2I/hINThGgZLk+o6jSyXkhlDgA7OnQwO4Fc+kyx+ejzqM44hDInk= 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=QI0TE1dJ; arc=none smtp.client-ip=95.215.58.188 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="QI0TE1dJ" Date: Wed, 25 Feb 2026 18:40:07 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1772073616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rB/Yufk4Q59hquQidpF2pzxYz6y4Be21NRg66TSUZCc=; b=QI0TE1dJoXpxiwq1XSFant4T8pZYqEYop53rdpYR8nNzwyzDrCPmtUcpYN78Syex43PlXA +2oebGbF8N3FxEHRRGG66B7Gfjdp3Rt3J0XJQD3A8JflGla3e6J1r2geNn0XvO43ZIDCat 0AvxBYHL/+m65guD0Aa572jFfDjO4Eg= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Qi Zheng Cc: hannes@cmpxchg.org, hughd@google.com, mhocko@suse.com, roman.gushchin@linux.dev, muchun.song@linux.dev, david@kernel.org, lorenzo.stoakes@oracle.com, ziy@nvidia.com, harry.yoo@oracle.com, yosry.ahmed@linux.dev, imran.f.khan@oracle.com, kamalesh.babulal@oracle.com, axelrasmussen@google.com, yuanchu@google.com, weixugc@google.com, chenridong@huaweicloud.com, mkoutny@suse.com, akpm@linux-foundation.org, hamzamahfooz@linux.microsoft.com, apais@linux.microsoft.com, lance.yang@linux.dev, bhe@redhat.com, usamaarif642@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Muchun Song , Qi Zheng Subject: Re: [PATCH v5 31/32] mm: memcontrol: eliminate the problem of dying memory cgroup for LRU folios Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Wed, Feb 25, 2026 at 03:53:14PM +0800, Qi Zheng wrote: > From: Muchun Song > > Now that everything is set up, switch folio->memcg_data pointers to > objcgs, update the accessors, and execute reparenting on cgroup death. > > Finally, folio->memcg_data of LRU folios and kmem folios will always > point to an object cgroup pointer. The folio->memcg_data of slab > folios will point to an vector of object cgroups. > > Signed-off-by: Muchun Song > Signed-off-by: Qi Zheng Acked-by: Shakeel Butt