Re: [PATCH] bcachefs: Mark bch_inode_info as SLAB_ACCOUNT

From: Kent Overstreet
Date: Thu Jul 11 2024 - 20:04:15 EST


On Wed, Jul 03, 2024 at 03:09:55PM GMT, Youling Tang wrote:
> From: Youling Tang <tangyouling@xxxxxxxxxx>
>
> After commit 230e9fc28604 ("slab: add SLAB_ACCOUNT flag"), we need to mark
> the inode cache as SLAB_ACCOUNT, similar to commit 5d097056c9a0 ("kmemcg:
> account for certain kmem allocations to memcg")
>
> Signed-off-by: Youling Tang <tangyouling@xxxxxxxxxx>

Turns out this was never tested with memcg enabled (!).

I'm reverting it, please feel free to send me a fixed version.