Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • kernel
  • cgroup.c
Find file BlameHistoryPermalink
  • Tejun Heo's avatar
    cgroup: factor out cgroup_apply_control_enable() from cgroup_subtree_control_write() · bdb53bd7
    Tejun Heo authored Mar 03, 2016
    
    
    Factor out css enabling and showing into cgroup_apply_control_enable().
    
    * Nest subsystem walk inside child walk.  The child walk will later be
      converted to subtree walk which is a bit more expensive.
    
    * Instead of operating on the differential masks @css_enable, simply
      enable or show csses according to the current cgroup_control() and
      cgroup_ss_mask().  This leads to the same result and is simpler and
      more robust.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarZefan Li <lizefan@huawei.com>
    bdb53bd7
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7