generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernfs,memcg: Addreess review comment for PR #96.
Orabug: 37322867 Signed-off-by: Imran Khan <[email protected]>
- Loading branch information
Showing
1 changed file
with
40 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit e0875fa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest all looks good, thanks
Instead of hard coding
can we have a small function similar to
177 /**
178 * for_each_subsys - iterate all enabled cgroup subsystems
179 * @ss: the iteration cursor
180 * @SSID: the index of @ss, CGROUP_SUBSYS_COUNT after reaching the end
181 */
182 #define for_each_subsys(ss, ssid)
183 for ((ssid) = 0; (ssid) < CGROUP_SUBSYS_COUNT &&
184 (((ss) = cgroup_subsys[ssid]) || true); (ssid)++)
This can give the index if the name is provided
This will also help in future development