diff options
author | Tejun Heo <[email protected]> | 2013-08-26 18:40:56 -0400 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2013-08-26 18:40:56 -0400 |
commit | 35cf083619da5677f83e9a8eae813f0b413d7082 (patch) | |
tree | 509ea1ae09644bc82040ec919fa94c928e98db27 /fs/jbd/commit.c | |
parent | 6e6eab0efdf48fb2d8d7aee904d7740acb4661c6 (diff) |
cgroup: rename cgroup_css_from_dir() to css_from_dir() and update its syntax
cgroup_css_from_dir() will grow another user. In preparation, make
the following changes.
* All css functions are prefixed with just "css_", rename it to
css_from_dir().
* Take dentry * instead of file * as dentry is what ultimately
identifies a cgroup and file may not always be available. Note that
the function now checkes whether @dentry->d_inode is NULL as the
caller now may specify a negative dentry.
* Make it take cgroup_subsys * instead of integer subsys_id. This
simplifies the function and allows specifying no subsystem for
cgroup->dummy_css.
* Make return section a bit less verbose.
This patch doesn't introduce any behavior changes.
Signed-off-by: Tejun Heo <[email protected]>
Acked-by: Li Zefan <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions