Commit fea77f52 authored by Lu Jialin's avatar Lu Jialin
Browse files

Remove redundants code for proc_cgroupstats_show

hulk inclusion
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/I9K8D1



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

Remove redundants and unused code in proc_cgroupstats_show().

Fixes: 8f1f7f47("cgroup: check if cgroup root is alive in cgroupstats_show()")
Signed-off-by: default avatarLu Jialin <lujialin4@huawei.com>
parent 43993247
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -682,7 +682,6 @@ int proc_cgroupstats_show(struct seq_file *m, void *v)
	 */
	mutex_lock(&cgroup_mutex);

	for_each_subsys(ss, i)
	for_each_subsys(ss, i) {
		dead = percpu_ref_is_dying(&ss->root->cgrp.self.refcnt);
		seq_printf(m, "%s\t%d\t%d\t%d\n",