Commit cb562ce3 authored by Peng Wu's avatar Peng Wu Committed by Wang Wensheng
Browse files

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: default avatarPeng Wu <wupeng58@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
parent bfdc680c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -587,7 +587,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;