From a5d4619573db4e95b4c5d3715e2e589013fffe6c Mon Sep 17 00:00:00 2001 From: Ding Tianhong Date: Mon, 16 Nov 2020 14:19:15 +0800 Subject: [PATCH] ascend: mm_struct: introduce new parameter for share pool features ascend inclusion category: feature bugzilla: NA CVE: NA ------------------------------------------------- The mm->sp_group is mainly used to find out the group which owns the mm, and the group could use the mm->sp_node to list and find out the mm, the mm->sp_stat_id is used for collecting memory information. This changes will affect and destroy the kabi only when enable the ascend_share_pool config. Signed-off-by: Tang Yizhou Signed-off-by: Li Ming Signed-off-by: Zefan Li Signed-off-by: Zhou Guanghui Signed-off-by: Ding Tianhong Reviewed-by: Kefeng Wang Signed-off-by: Yang Yingliang --- include/linux/mm_types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index fcfa9a75c18e..886ceb0f91e3 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -468,6 +468,11 @@ struct mm_struct { #endif struct user_namespace *user_ns; +#ifdef CONFIG_ASCEND_SHARE_POOL + struct sp_group *sp_group; + struct list_head sp_node; /* link to sp_group->procs */ + int sp_stat_id; +#endif /* store ref to file /proc//exe symlink points to */ struct file __rcu *exe_file; #ifdef CONFIG_MMU_NOTIFIER -- GitLab