aboutsummaryrefslogtreecommitdiff
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 66d01078eebe..b69b572131e5 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 */