History

cgroup, blkcg: Prepare some symbols for module and !CONFIG_CGROUP usages

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.

Tejun Heo committed 7 years ago

Commit 9b0eb691 parent fd112c73 files · +5 −0Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/cgroup.h+1−0
@@ -699,6 +699,7 @@ void cgroup_path_from_kernfs_id(const union kernfs_node_id *id, · 698 unmodified lines
699699 struct cgroup_subsys_state;
700700 struct cgroup;
701701
702+static inline void css_get(struct cgroup_subsys_state *css) {}
702703 static inline void css_put(struct cgroup_subsys_state *css) {}
703704 static inline int cgroup_attach_task_all(struct task_struct *from,
704705 struct task_struct *t) { return 0; }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t