Commit c4bcb43e authored by Ma Wupeng's avatar Ma Wupeng Committed by Yang Yingliang
Browse files

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: default avatarMa Wupeng <mawupeng1@huawei.com>
Reviewed-by: default avatarKefeng <Wang&lt;wangkefeng.wang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 5c43ab17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment