btrfs is going to use css_put() and wbc helpers to improve cgroup writeback support. Add dummy css_get() definition and export wbc helpers to prepare for module and !CONFIG_CGROUP builds.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -699,6 +699,7 @@ void cgroup_path_from_kernfs_id(const union kernfs_node_id *id, · 698 unmodified lines | ||
| 699 | 699 | struct cgroup_subsys_state; |
| 700 | 700 | struct cgroup; |
| 701 | 701 | |
| 702 | +static inline void css_get(struct cgroup_subsys_state *css) {} | |
| 702 | 703 | static inline void css_put(struct cgroup_subsys_state *css) {} |
| 703 | 704 | static inline int cgroup_attach_task_all(struct task_struct *from, |
| 704 | 705 | struct task_struct *t) { return 0; } |