diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 66d01078eebe3569f2f3dafdf3e9c3e8fd2d449d..b69b572131e50369233c632eb582fbc604bd29ea 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -4494,7 +4494,7 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry, struct cgroup_subsys_state *css = css_ar[ss->subsys_id]; dget(dentry); - percpu_ref_get(&css->parent->refcnt); + css_get(css->parent); } /* hold a ref to the parent's dentry */