Commit 7663c791 authored by Xu Qiang's avatar Xu Qiang Committed by Zhong Jinghua
Browse files

mm/sharepool: Delete unused mm in sp_proc_stat.

hulk inclusion
category: other
bugzilla: https://gitee.com/openeuler/kernel/issues/I6ET9W



----------------------------------------------

Signed-off-by: default avatarXu Qiang <xuqiang36@huawei.com>
parent 30dd244b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -126,7 +126,6 @@ struct sp_spg_stat {
/* per process memory usage statistics indexed by tgid */
struct sp_proc_stat {
	int tgid;
	struct mm_struct *mm;
	char comm[TASK_COMM_LEN];
	/*
	 * alloc amount minus free amount, may be negative when freed by
@@ -282,7 +281,6 @@ static void sp_init_group_master_stat(int tgid, struct mm_struct *mm,
	atomic64_set(&stat->alloc_nsize, 0);
	atomic64_set(&stat->alloc_hsize, 0);
	atomic64_set(&stat->k2u_size, 0);
	stat->mm = mm;
	stat->tgid = tgid;
	get_task_comm(stat->comm, current);
}