Re: [PATCH net-next v4 1/3] cgroup: Add task_under_cgroup_hierarchy cgroup inline function to headers

2016-08-12 Thread Tejun Heo
On Thu, Aug 11, 2016 at 08:14:45PM -0700, Sargun Dhillon wrote: > This commit adds an inline function to cgroup.h to check whether a given > task is under a given cgroup hierarchy. This is to avoid having to put > ifdefs in .c files to gate access to cgroups. When cgroups are disabled > this always

[PATCH net-next v4 1/3] cgroup: Add task_under_cgroup_hierarchy cgroup inline function to headers

2016-08-11 Thread Sargun Dhillon
This commit adds an inline function to cgroup.h to check whether a given task is under a given cgroup hierarchy. This is to avoid having to put ifdefs in .c files to gate access to cgroups. When cgroups are disabled this always returns true. Signed-off-by: Sargun Dhillon Cc: Alexei Starovoitov C