diff options
author | 2025-02-27 23:58:08 -0800 | |
---|---|---|
committer | 2025-03-17 00:05:36 -0700 | |
commit | f7b0797d36e75d2a622580b56b9bfd3130d5d0e9 (patch) | |
tree | d84b42afca8c642b84f9500ac7d19193cf1f1dae /mm/hugetlb.c | |
parent | page_counter: track failcnt only for legacy cgroups (diff) | |
download | wireguard-linux-f7b0797d36e75d2a622580b56b9bfd3130d5d0e9.tar.xz wireguard-linux-f7b0797d36e75d2a622580b56b9bfd3130d5d0e9.zip |
page_counter: reduce struct page_counter size
The struct page_counter has explicit padding for better cache alignment.
The commit c6f53ed8f213a ("mm, memcg: cg2 memory{.swap,}.peak write
handlers") added a field to the struct page_counter and accidently
increased its size. Let's move the failcnt field which is v1-only field
to the same cacheline of usage to reduce the size of struct page_counter.
Link: https://lkml.kernel.org/r/20250228075808.207484-4-shakeel.butt@linux.dev
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Roman Gushchin (Cruise) <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions