aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/cgroup.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index fb71a930ec8d..2ab29eb381b7 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -282,6 +282,16 @@ list_for_each_entry(_ss, &_root->subsys_list, sibling)
282#define for_each_active_root(_root) \ 282#define for_each_active_root(_root) \
283list_for_each_entry(_root, &roots, root_list) 283list_for_each_entry(_root, &roots, root_list)
284 284
285static inline struct cgroup *__d_cgrp(struct dentry *dentry)
286{
287 return dentry->d_fsdata;
288}
289
290static inline struct cftype *__d_cft(struct dentry *dentry)
291{
292 return dentry->d_fsdata;
293}
294
285/* the list of cgroups eligible for automatic release. Protected by 295/* the list of cgroups eligible for automatic release. Protected by
286 * release_list_lock */ 296 * release_list_lock */
287static LIST_HEAD(release_list); 297static LIST_HEAD(release_list);
@@ -1704,16 +1714,6 @@ static struct file_system_type cgroup_fs_type = {
1704 1714
1705static struct kobject *cgroup_kobj; 1715static struct kobject *cgroup_kobj;
1706 1716
1707static inline struct cgroup *__d_cgrp(struct dentry *dentry)
1708{
1709 return dentry->d_fsdata;
1710}
1711
1712static inline struct cftype *__d_cft(struct dentry *dentry)
1713{
1714 return dentry->d_fsdata;
1715}
1716
1717/** 1717/**
1718 * cgroup_path - generate the path of a cgroup 1718 * cgroup_path - generate the path of a cgroup
1719 * @cgrp: the cgroup in question 1719 * @cgrp: the cgroup in question