Skip to content

Commit 9fa001c

Browse files
rgushchinakpm00
authored andcommitted
mm: memcg: drop obsolete cache line padding in struct mem_cgroup
After the grouping of the cgroup v1-related fields and the corresponding reorganization of the struct mem_cgroup, the existing cache line padding doesn't make much sense anymore. Let's drop it for now and put back to new places, if necessary. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Roman Gushchin <[email protected]> Suggested-by: Shakeel Butt <[email protected]> Acked-by: Shakeel Butt <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Muchun Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent f6a6de2 commit 9fa001c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/linux/memcontrol.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ struct mem_cgroup {
220220
/* handle for "memory.swap.events" */
221221
struct cgroup_file swap_events_file;
222222

223-
CACHELINE_PADDING(_pad1_);
224-
225223
/* memory.stat */
226224
struct memcg_vmstats *vmstats;
227225

@@ -305,8 +303,6 @@ struct mem_cgroup {
305303
bool tcpmem_active;
306304
int tcpmem_pressure;
307305

308-
CACHELINE_PADDING(_pad2_);
309-
310306
/*
311307
* set > 0 if pages under this cgroup are moving to other cgroup.
312308
*/

0 commit comments

Comments
 (0)