/* Check that a directory does not belong to a directory hierarchy being attached and not validated yet. @sd configfs_dirent of the directory to check */
int configfs_dirent_is_ready(struct configfs_dirent *sd)
/* Check that a directory does not belong to a directory hierarchy being attached and not validated yet. @sd configfs_dirent of the directory to check */
int configfs_dirent_is_ready(struct configfs_dirent *sd)
{
	int ret;
	spin_lock(&configfs_dirent_lock);
	ret = !(sd->s_type & CONFIGFS_USET_CREATING);
	spin_unlock(&configfs_dirent_lock);
	return ret;
}