File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,16 @@ struct mem_cgroup_per_node {
95
95
#ifdef CONFIG_MEMCG_V1
96
96
/*
97
97
* Memcg-v1 only stuff in middle as buffer between read mostly fields
98
- * and update often fields to avoid false sharing. Once v1 stuff is
99
- * moved in a separate struct , an explicit padding is needed.
98
+ * and update often fields to avoid false sharing. If v1 stuff is
99
+ * not present , an explicit padding is needed.
100
100
*/
101
101
102
102
struct rb_node tree_node ; /* RB tree node */
103
103
unsigned long usage_in_excess ;/* Set to the value by which */
104
104
/* the soft limit is exceeded*/
105
105
bool on_tree ;
106
+ #else
107
+ CACHELINE_PADDING (_pad1_ );
106
108
#endif
107
109
108
110
/* Fields which get updated often at the end. */
You can’t perform that action at this time.
0 commit comments