Re: [next -v1 5/5] memcg: factor out stat(event)/stat_local(event_local) reading functions
From: Chen Ridong
Date: Fri Dec 20 2024 - 04:52:32 EST
On 2024/12/6 9:35, Chen Ridong wrote:
> From: Chen Ridong <chenridong@xxxxxxxxxx>
>
> The only difference between 'lruvec_page_state' and
> 'lruvec_page_state_local' is that they read 'state' and 'state_local',
> respectively. Factor out an inner functions to make the code more concise.
> Do the same for reading 'memcg_page_stat' and 'memcg_events'.
>
> Signed-off-by: Chen Ridong <chenridong@xxxxxxxxxx>
I hope someone can review this patch.
If there are any comments or suggestions, I will update this series
together,
Best regards
Ridong