
From: Ding Tianhong <dingtianhong@huawei.com> ascend inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4EUVI 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 <tangyizhou@huawei.com> Signed-off-by: Li Ming <limingming.li@huawei.com> Signed-off-by: Zefan Li <lizefan@huawei.com> Signed-off-by: Zhou Guanghui <zhouguanghui1@huawei.com> Signed-off-by: Ding Tianhong <dingtianhong@huawei.com> Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Weilong Chen <chenweilong@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- 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 34ef2ad0ad1e8..51a85ba5ac915 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -470,6 +470,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/<pid>/exe symlink points to */ struct file __rcu *exe_file; #ifdef CONFIG_MMU_NOTIFIER -- 2.25.1