/* nearest_hardwall_ancestor() - Returns the nearest mem_exclusive or mem_hardwall ancestor to the specified cpuset. Call holding callback_mutex. If no ancestor is mem_exclusive or mem_hardwall (an unusual configuration), then returns the root cpuset.  */
static const struct cpuset* nearest_hardwall_ancestor(const struct cpuset *cs)
/* nearest_hardwall_ancestor() - Returns the nearest mem_exclusive or mem_hardwall ancestor to the specified cpuset. Call holding callback_mutex. If no ancestor is mem_exclusive or mem_hardwall (an unusual configuration), then returns the root cpuset.  */
static const struct cpuset* nearest_hardwall_ancestor(const struct cpuset *cs)
{
	while (!(is_mem_exclusive(cs) || is_mem_hardwall(cs)) && cs->parent)
		cs = cs->parent;
	return cs;
}