From: Peng Wu wupeng58@huawei.com
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4SK3S CVE: NA
--------------------------------
Adding an variable in mm_struct for accouting the amount of reliable memory allocated by the reliable user tasks.
Signed-off-by: Peng Wu wupeng58@huawei.com Reviewed-by: Kefeng Wang wangkefeng.wang@huawei.com --- include/linux/mm_types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 9de02b116185..cf037e744c51 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -591,7 +591,8 @@ struct mm_struct { #endif
#ifdef CONFIG_MEMORY_RELIABLE - atomic_long_t reserve_0; + /* total used reliable pages */ + KABI_RENAME(atomic_long_t reserve_0, atomic_long_t reliable_nr_page); #endif } __randomize_layout;