/* Call subsys's pre_destroy handler. This is called before css refcnt check.  */
static int cgroup_call_pre_destroy(struct cgroup *cgrp)
/* Call subsys's pre_destroy handler. This is called before css refcnt check.  */
static int cgroup_call_pre_destroy(struct cgroup *cgrp)
{
	struct cgroup_subsys *ss;
	int ret = 0;
	for_each_subsys(cgrp->root, ss)
		if (ss->pre_destroy) {
			ret = ss->pre_destroy(ss, cgrp);
			if (ret)
				break;
		}
	return ret;
}