/* This is a helper function for 'dbg_check_idx_size()' which is called for every indexing node and adds its size to the 'long long' variable pointed to by @priv.  */
static int add_size(struct ubifs_info *c, struct ubifs_znode *znode, void *priv)
/* This is a helper function for 'dbg_check_idx_size()' which is called for every indexing node and adds its size to the 'long long' variable pointed to by @priv.  */
static int add_size(struct ubifs_info *c, struct ubifs_znode *znode, void *priv)
{
	long long *idx_size = priv;
	int add;
	add = ubifs_idx_node_sz(c, znode->child_cnt);
	add = ALIGN(add, 8);
	*idx_size += add;
	return 0;
}