/* gfs2_rlist_free - free a resource group list @list: the list of resource groups  */
void gfs2_rlist_free(struct gfs2_rgrp_list *rlist)
/* gfs2_rlist_free - free a resource group list @list: the list of resource groups  */
void gfs2_rlist_free(struct gfs2_rgrp_list *rlist)
{
	unsigned int x;
	kfree(rlist->rl_rgd);
	if (rlist->rl_ghs) {
		for (x = 0; x < rlist->rl_rgrps; x++)
			gfs2_holder_uninit(&rlist->rl_ghs[x]);
		kfree(rlist->rl_ghs);
	}
}