cgroup: helper do determine group name

With more than one user, it is useful to have a helper function in the
cgroup core to derive a group's name.

We'll just return a pointer, and it is not expected to get incredibly
complicated. But it is useful to have it so we can abstract away the
vfs relation from its users.

Signed-off-by: Glauber Costa <>
CC: Tejun Heo <>
CC: Michal Hocko <>
CC: Kamezawa Hiroyuki <>
CC: Johannes Weiner <>
3 files changed