Lines Matching refs:cur_free
195 static void check_left (struct tree_balance * tb, int h, int cur_free) in check_left() argument
202 RFALSE( cur_free < 0, "vs-8050: cur_free (%d) < 0", cur_free); in check_left()
206 tb->lnum[h] = cur_free / (DC_SIZE + KEY_SIZE); in check_left()
212 if (!cur_free || !vn->vn_nr_item) { in check_left()
223 …if ((unsigned int)cur_free >= (vn->vn_size - ((vi->vi_type & VI_TYPE_LEFT_MERGEABLE) ? IH_SIZE : 0… in check_left()
244 if (cur_free >= d_size) { in check_left()
246 cur_free -= d_size; in check_left()
253 if (cur_free <= ih_size) { in check_left()
258 cur_free -= ih_size; in check_left()
260 tb->lbytes = op_check_left (vi, cur_free, 0, 0); in check_left()
274 static void check_right (struct tree_balance * tb, int h, int cur_free) in check_right() argument
281 RFALSE( cur_free < 0, "vs-8070: cur_free < 0"); in check_right()
285 tb->rnum[h] = cur_free / (DC_SIZE + KEY_SIZE); in check_right()
291 if (!cur_free || !vn->vn_nr_item) { in check_right()
302 …if ((unsigned int)cur_free >= (vn->vn_size - ((vi->vi_type & VI_TYPE_RIGHT_MERGEABLE) ? IH_SIZE : … in check_right()
322 if (cur_free >= d_size) { in check_right()
324 cur_free -= d_size; in check_right()
330 if ( cur_free <= ih_size ) { /* cannot shift even a part of the current item */ in check_right()
336 cur_free -= ih_size; /* cur_free is still > 0 */ in check_right()
338 tb->rbytes = op_check_right (vi, cur_free); in check_right()
362 int cur_free; in get_num_ver() local
408 cur_free = max_node_size; in get_num_ver()