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 returns true. > > Signed-off-by: Sargun Dhillon <sar...@sargun.me> > Cc: Alexei Starovoitov <a...@kernel.org> > Cc: Daniel Borkmann <dan...@iogearbox.net> > Cc: Tejun Heo <t...@kernel.org>
Acked-by: Tejun Heo <t...@kernel.org> Please feel free to route with other patches. If it'd be better to route this through the cgroup tree, please let me know. Thanks. -- tejun