From 4f34df2394f77d91eb47bedafabab7995d89b81a Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 18 Aug 2022 11:35:54 +0800 Subject: [PATCH] mm: Add reliable_nr_page for accounting reliable memory 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 Reviewed-by: Kefeng Wang --- 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; -- GitLab