diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2019-07-12 05:52:11 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-12 20:05:40 +0200 |
commit | dd9239900e12db84c198855b262ae7796db1123b (patch) | |
tree | bf8961375e2bbb9777080944f6105acf6b248fc2 /mm/z3fold.c | |
parent | mm/nvdimm: add is_ioremap_addr and use that to check ioremap address (diff) | |
download | linux-dd9239900e12db84c198855b262ae7796db1123b.tar.xz linux-dd9239900e12db84c198855b262ae7796db1123b.zip |
mm/memcontrol: fix wrong statistics in memory.stat
When we calculate total statistics for memcg1_stats and memcg1_events,
we use the the index 'i' in the for loop as the events index. Actually
we should use memcg1_stats[i] and memcg1_events[i] as the events index.
Link: http://lkml.kernel.org/r/1562116978-19539-1-git-send-email-laoar.shao@gmail.com
Fixes: 42a300353577 ("mm: memcontrol: fix recursive statistics correctness & scalabilty").
Signed-off-by: Yafang Shao <laoar.shao@gmail.com
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Yafang Shao <shaoyafang@didiglobal.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/z3fold.c')
0 files changed, 0 insertions, 0 deletions