Skip to content

Commit 77d5667

Browse files
committed
cgroup patch
1 parent 2818c98 commit 77d5667

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

kernel/cgroup.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3774,6 +3774,11 @@ static int cgroup_add_file(struct cgroup_subsys_state *css, struct cgroup *cgrp,
37743774
spin_unlock_irq(&cgroup_file_kn_lock);
37753775
}
37763776

3777+
if (cft->ss && (cgrp->root->flags & CGRP_ROOT_NOPREFIX) && !(cft->flags & CFTYPE_NO_PREFIX)) {
3778+
snprintf(name, CGROUP_FILE_NAME_MAX, "%s.%s", cft->ss->name, cft->name);
3779+
kernfs_create_link(cgrp->kn, name, kn);
3780+
}
3781+
37773782
return 0;
37783783
}
37793784

0 commit comments

Comments
 (0)