提交 a5d46195 编写于 作者: D Ding Tianhong 提交者: Yang Yingliang

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: NTang Yizhou <tangyizhou@huawei.com>
Signed-off-by: NLi Ming <limingming.li@huawei.com>
Signed-off-by: NZefan Li <lizefan@huawei.com>
Signed-off-by: NZhou Guanghui <zhouguanghui1@huawei.com>
Signed-off-by: NDing Tianhong <dingtianhong@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 1291ad3f
...@@ -468,6 +468,11 @@ struct mm_struct { ...@@ -468,6 +468,11 @@ struct mm_struct {
#endif #endif
struct user_namespace *user_ns; 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 */ /* store ref to file /proc/<pid>/exe symlink points to */
struct file __rcu *exe_file; struct file __rcu *exe_file;
#ifdef CONFIG_MMU_NOTIFIER #ifdef CONFIG_MMU_NOTIFIER
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册