/* This fixes the problem where directories might have inadvertently been deleted leaving the object "hanging" without being rooted in the directory tree.  */
static int yaffs_has_null_parent(struct yaffs_dev *dev, struct yaffs_obj *obj)
/* This fixes the problem where directories might have inadvertently been deleted leaving the object "hanging" without being rooted in the directory tree.  */
static int yaffs_has_null_parent(struct yaffs_dev *dev, struct yaffs_obj *obj)
{
	return (obj == dev->del_dir ||
		obj == dev->unlinked_dir || obj == dev->root_dir);
}