/* A LEB may have fallen off of the bottom of a heap, and ended up as uncategorized even though it has enough space for us now. If that is the case this function will put the LEB back onto a heap.  */
void ubifs_ensure_cat(struct ubifs_info *c, struct ubifs_lprops *lprops)
/* A LEB may have fallen off of the bottom of a heap, and ended up as uncategorized even though it has enough space for us now. If that is the case this function will put the LEB back onto a heap.  */
void ubifs_ensure_cat(struct ubifs_info *c, struct ubifs_lprops *lprops)
{
	int cat = lprops->flags & LPROPS_CAT_MASK;
	if (cat != LPROPS_UNCAT)
		return;
	cat = ubifs_categorize_lprops(c, lprops);
	if (cat == LPROPS_UNCAT)
		return;
	ubifs_remove_from_cat(c, lprops, LPROPS_UNCAT);
	ubifs_add_to_cat(c, lprops, cat);
}