diff options
author | zhongjiang-ali <[email protected]> | 2020-11-01 17:07:30 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-11-02 12:14:18 -0800 |
commit | 7de2e9f195b9cb27583c5c64deaaf5e6afcc163e (patch) | |
tree | c77ba8eb8d9b084834375b62405f39e2a29cbc45 /lib/test_overflow.c | |
parent | 79aa925bf239c234be8586780e482872dc4690dd (diff) |
mm: memcontrol: correct the NR_ANON_THPS counter of hierarchical memcg
memcg_page_state will get the specified number in hierarchical memcg, It
should multiply by HPAGE_PMD_NR rather than an page if the item is
NR_ANON_THPS.
[[email protected]: fix printk warning]
[[email protected]: use u64 cast, per Michal]
Fixes: 468c398233da ("mm: memcontrol: switch to native NR_ANON_THPS counter")
Signed-off-by: zhongjiang-ali <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Link: https://lkml.kernel.org/r/1603722395-72443-1-git-send-email-zhongjiang-ali@linux.alibaba.com
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions