Re: [PATCH 4/5] mm: memcontrol: use __account_obj_stock() in the !locked path
From: Hao Li
Date: Tue Mar 03 2026 - 03:08:47 EST
On Mon, Mar 02, 2026 at 02:50:17PM -0500, Johannes Weiner wrote:
> Make __account_obj_stock() usable for the case where the local trylock
> failed. Then switch refill_obj_stock() over to it.
>
> This consolidates the mod_objcg_mlstate() call into one place and will
> make the next patch easier to follow.
>
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>
> ---
> mm/memcontrol.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
LGTM.
Reviewed-by: Hao Li <hao.li@xxxxxxxxx>