/* This function calculates and returns the nnode number for the nnode at @row and @col.  */
static int calc_nnode_num(int row, int col)
/* This function calculates and returns the nnode number for the nnode at @row and @col.  */
static int calc_nnode_num(int row, int col)
{
	int num, bits;
	num = 1;
	while (row--) {
		bits = (col & (UBIFS_LPT_FANOUT - 1));
		col >>= UBIFS_LPT_FANOUT_SHIFT;
		num <<= UBIFS_LPT_FANOUT_SHIFT;
		num |= bits;
	}
	return num;
}