/* This function calculates the LEB numbers for the LEB properties it contains based on the pnode number.  */
static void set_pnode_lnum(const struct ubifs_info *c, struct ubifs_pnode *pnode)
/* This function calculates the LEB numbers for the LEB properties it contains based on the pnode number.  */
static void set_pnode_lnum(const struct ubifs_info *c, struct ubifs_pnode *pnode)
{
	int i, lnum;
	lnum = (pnode->num << UBIFS_LPT_FANOUT_SHIFT) + c->main_first;
	for (i = 0; i < UBIFS_LPT_FANOUT; i++) {
		if (lnum >= c->leb_cnt)
			return;
		pnode->lprops[i].lnum = lnum++;
	}
}