diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-09 22:07:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-09 22:07:45 -0500 |
commit | 15763db134dd60504dbd93137e6654f06d639acf (patch) | |
tree | 029202adc2faf44a84f5c9454fe0073094b06d0d | |
parent | c2189e3a3d67e94941c568ee8fab1b86983cd024 (diff) | |
parent | f3ba53802eff25e3eedb60d7afe5262710e20bd5 (diff) |
Merge branch 'for-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
Pull cgroup changes from Tejun Heo:
"Three mostly trivial patches. The biggest change is that blkio is now
initialized before memcg which will be needed to make memcg and blkcg
cooperate on writeback IOs"
* 'for-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
cgroup: add dummy css_put() for !CONFIG_CGROUPS
cgroup: reorder SUBSYS(blkio) in cgroup_subsys.h
Update of Documentation/cgroups/00-INDEX
-rw-r--r-- | Documentation/cgroups/00-INDEX | 2 | ||||
-rw-r--r-- | include/linux/cgroup.h | 4 | ||||
-rw-r--r-- | include/linux/cgroup_subsys.h | 8 |
3 files changed, 10 insertions, 4 deletions
diff --git a/Documentation/cgroups/00-INDEX b/Documentation/cgroups/00-INDEX index bc461b6425a7..96ce071a3633 100644 --- a/Documentation/cgroups/00-INDEX +++ b/Documentation/cgroups/00-INDEX | |||
@@ -24,3 +24,5 @@ net_prio.txt | |||
24 | - Network priority cgroups details and usages. | 24 | - Network priority cgroups details and usages. |
25 | resource_counter.txt | 25 | resource_counter.txt |
26 | - Resource Counter API. | 26 | - Resource Counter API. |
27 | unified-hierarchy.txt | ||
28 | - Description the new/next cgroup interface. | ||
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index da0dae0600e6..b9cb94c3102a 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -943,6 +943,8 @@ struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry, | |||
943 | 943 | ||
944 | #else /* !CONFIG_CGROUPS */ | 944 | #else /* !CONFIG_CGROUPS */ |
945 | 945 | ||
946 | struct cgroup_subsys_state; | ||
947 | |||
946 | static inline int cgroup_init_early(void) { return 0; } | 948 | static inline int cgroup_init_early(void) { return 0; } |
947 | static inline int cgroup_init(void) { return 0; } | 949 | static inline int cgroup_init(void) { return 0; } |
948 | static inline void cgroup_fork(struct task_struct *p) {} | 950 | static inline void cgroup_fork(struct task_struct *p) {} |
@@ -955,6 +957,8 @@ static inline int cgroupstats_build(struct cgroupstats *stats, | |||
955 | return -EINVAL; | 957 | return -EINVAL; |
956 | } | 958 | } |
957 | 959 | ||
960 | static inline void css_put(struct cgroup_subsys_state *css) {} | ||
961 | |||
958 | /* No cgroups - nothing to do */ | 962 | /* No cgroups - nothing to do */ |
959 | static inline int cgroup_attach_task_all(struct task_struct *from, | 963 | static inline int cgroup_attach_task_all(struct task_struct *from, |
960 | struct task_struct *t) | 964 | struct task_struct *t) |
diff --git a/include/linux/cgroup_subsys.h b/include/linux/cgroup_subsys.h index 98c4f9b12b03..e4a96fb14403 100644 --- a/include/linux/cgroup_subsys.h +++ b/include/linux/cgroup_subsys.h | |||
@@ -15,6 +15,10 @@ SUBSYS(cpu) | |||
15 | SUBSYS(cpuacct) | 15 | SUBSYS(cpuacct) |
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | #if IS_ENABLED(CONFIG_BLK_CGROUP) | ||
19 | SUBSYS(blkio) | ||
20 | #endif | ||
21 | |||
18 | #if IS_ENABLED(CONFIG_MEMCG) | 22 | #if IS_ENABLED(CONFIG_MEMCG) |
19 | SUBSYS(memory) | 23 | SUBSYS(memory) |
20 | #endif | 24 | #endif |
@@ -31,10 +35,6 @@ SUBSYS(freezer) | |||
31 | SUBSYS(net_cls) | 35 | SUBSYS(net_cls) |
32 | #endif | 36 | #endif |
33 | 37 | ||
34 | #if IS_ENABLED(CONFIG_BLK_CGROUP) | ||
35 | SUBSYS(blkio) | ||
36 | #endif | ||
37 | |||
38 | #if IS_ENABLED(CONFIG_CGROUP_PERF) | 38 | #if IS_ENABLED(CONFIG_CGROUP_PERF) |
39 | SUBSYS(perf_event) | 39 | SUBSYS(perf_event) |
40 | #endif | 40 | #endif |