mm: Show correct reliable_user_used if PAGE_SIZE is not 4K
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4SK3S CVE: NA -------------------------------- Previous reliable_user_used was wrong if PAGE_SIZE is not 4K because this num was calculated by 4 * reliable_user_used_nr_page. Now reliable_user_used is calculated by (PAGE_SHIFT - 10) * reliable_user_used_nr_page. Signed-off-by: NMa Wupeng <mawupeng1@huawei.com> Reviewed-by: Kefeng Wang<wangkefeng.wang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录