On Sat, 26 Oct 2024 09:34:07 +0000 Xiu Jianfeng <xiujianfeng@xxxxxxxxxxxxxxx> wrote: > Currently mem_cgroup_css_rstat_flush() is used to flush the per-CPU > statistics from a specified CPU into the global statistics of the > memcg. It processes three kinds of data in three for loops using exactly > the same method. Therefore, the for loop can be factored out and may > make the code more clean. Thanks, I guess that's better. I'll queue it for testing and shall await input from others who work on this code.