/* When a pnode is loaded into memory, the LEB properties it contains are added, by this function, to the LEB category lists and heaps.  */
static void update_cats(struct ubifs_info *c, struct ubifs_pnode *pnode)
/* When a pnode is loaded into memory, the LEB properties it contains are added, by this function, to the LEB category lists and heaps.  */
static void update_cats(struct ubifs_info *c, struct ubifs_pnode *pnode)
{
	int i;
	for (i = 0; i < UBIFS_LPT_FANOUT; i++) {
		int cat = pnode->lprops[i].flags & LPROPS_CAT_MASK;
		int lnum = pnode->lprops[i].lnum;
		if (!lnum)
			return;
		ubifs_add_to_cat(c, &pnode->lprops[i], cat);
	}
}