/* LEB properties are categorized to enable fast find operations.  */
static void ubifs_remove_from_cat(struct ubifs_info *c, struct ubifs_lprops *lprops, int cat)
/* LEB properties are categorized to enable fast find operations.  */
static void ubifs_remove_from_cat(struct ubifs_info *c, struct ubifs_lprops *lprops, int cat)
{
	switch (cat) {
	case LPROPS_DIRTY:
	case LPROPS_DIRTY_IDX:
	case LPROPS_FREE:
		remove_from_lpt_heap(c, lprops, cat);
		break;
	case LPROPS_FREEABLE:
		c->freeable_cnt -= 1;
		ubifs_assert(c->freeable_cnt >= 0);
	case LPROPS_UNCAT:
	case LPROPS_EMPTY:
	case LPROPS_FRDI_IDX:
		ubifs_assert(!list_empty(&lprops->list));
		list_del(&lprops->list);
		break;
	default:
		ubifs_assert(0);
	}
}