Repository navigation
Commit 93030d8
slub: fix memcg_propagate_slab_attrs
After creating a cache for a memcg we should initialize its sysfs attrs
with the values from its parent. That's what memcg_propagate_slab_attrs
is for. Currently it's broken - we clearly muddled root-vs-memcg caches
there. Let's fix it up.
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 3573839 commit 93030d8
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5071 | 5071 | | |
5072 | 5072 | | |
5073 | 5073 | | |
| 5074 | + | |
5074 | 5075 | | |
5075 | | - | |
| 5076 | + | |
5076 | 5077 | | |
5077 | 5078 | | |
| 5079 | + | |
| 5080 | + | |
5078 | 5081 | | |
5079 | 5082 | | |
5080 | 5083 | | |
5081 | 5084 | | |
5082 | | - | |
| 5085 | + | |
5083 | 5086 | | |
5084 | 5087 | | |
5085 | 5088 | | |
| |||
5101 | 5104 | | |
5102 | 5105 | | |
5103 | 5106 | | |
5104 | | - | |
| 5107 | + | |
5105 | 5108 | | |
5106 | 5109 | | |
5107 | 5110 | | |
| |||
5110 | 5113 | | |
5111 | 5114 | | |
5112 | 5115 | | |
5113 | | - | |
| 5116 | + | |
5114 | 5117 | | |
5115 | 5118 | | |
5116 | 5119 | | |
| |||
0 commit comments