Re: [PATCH] cgroup: Delete unnecessary if statement in css_visible()

2020-10-01 Thread Hao Lee
Hi, ping... On Sat, Aug 29, 2020 at 10:03:16AM +, Hao Lee wrote: > css_visible() is called in either cgroup_apply_control_enable() > or cgroup_apply_control_disable(). > In cgroup_apply_control_enable(), we have checked ss_mask before calling > css_visible(), so there is no need to do the

Re: [PATCH] cgroup: Delete unnecessary if statement in css_visible()

2020-09-08 Thread Hao Lee
Hello, ping On Sat, Aug 29, 2020 at 10:03:16AM +, Hao Lee wrote: > css_visible() is called in either cgroup_apply_control_enable() > or cgroup_apply_control_disable(). > In cgroup_apply_control_enable(), we have checked ss_mask before calling > css_visible(), so there is no need to do the

[PATCH] cgroup: Delete unnecessary if statement in css_visible()

2020-08-29 Thread Hao Lee
css_visible() is called in either cgroup_apply_control_enable() or cgroup_apply_control_disable(). In cgroup_apply_control_enable(), we have checked ss_mask before calling css_visible(), so there is no need to do the same thing again. In cgroup_apply_control_disable(): - If css->parent is not