/* NOTE : the dentry must have been dget()'ed  */
static void cgroup_d_remove_dir(struct dentry *dentry)
/* NOTE : the dentry must have been dget()'ed  */
static void cgroup_d_remove_dir(struct dentry *dentry)
{
	cgroup_clear_directory(dentry);
	spin_lock(&dcache_lock);
	list_del_init(&dentry->d_u.d_child);
	spin_unlock(&dcache_lock);
	remove_dir(dentry);
}