>>> +static int mem_cgroup_size(void)>> inline this function?>>> necessary ? > Not so necessary IMO. It's called when a cgroup is created and removed, thatis mkdir and rmdir, where performance is not critical.