Lines Matching full:depth

353   printf ("root read_in: block=%d, depth=%d\n",  in reiserfs_mount()
389 /* Read in the node at the current path and depth into the node cache.
390 * You must set INFO->blocks[depth] before.
393 read_tree_node (unsigned int blockNr, int depth) in read_tree_node() argument
395 char* cache = CACHE(depth); in read_tree_node()
397 if (depth < num_cached) in read_tree_node()
402 if (blockNr == INFO->blocks[depth]) in read_tree_node()
409 printf (" next read_in: block=%d (depth=%d)\n", in read_tree_node()
410 blockNr, depth); in read_tree_node()
415 if (__le16_to_cpu(BLOCKHEAD (cache)->blk_level) != depth) in read_tree_node()
421 INFO->blocks[depth] = blockNr; in read_tree_node()
431 int depth; in next_key() local
446 depth = DISK_LEAF_NODE_LEVEL; in next_key()
452 if (depth == INFO->tree_depth) in next_key()
459 depth++; in next_key()
461 printf (" depth=%d, i=%d\n", depth, INFO->next_key_nr[depth]); in next_key()
464 while (INFO->next_key_nr[depth] == 0); in next_key()
466 if (depth == INFO->tree_depth) in next_key()
468 else if (depth <= INFO->cached_slots) in next_key()
469 cache = CACHE (depth); in next_key()
472 cache = read_tree_node (INFO->blocks[depth], depth); in next_key()
480 int key_nr = INFO->next_key_nr[depth]++; in next_key()
482 printf (" depth=%d, i=%d/%d\n", depth, key_nr, nr_item); in next_key()
486 INFO->next_key_nr[depth] = 0; in next_key()
488 cache = read_tree_node (dc_block_number(&(DC (cache)[key_nr])), --depth); in next_key()
492 while (depth > DISK_LEAF_NODE_LEVEL); in next_key()
524 int depth; in search_stat() local
532 depth = INFO->tree_depth; in search_stat()
535 while (depth > DISK_LEAF_NODE_LEVEL) in search_stat()
555 printf (" depth=%d, i=%d/%d\n", depth, i, nr_item); in search_stat()
557 INFO->next_key_nr[depth] = (i == nr_item) ? 0 : i+1; in search_stat()
558 cache = read_tree_node (dc_block_number(&(DC (cache)[i])), --depth); in search_stat()
574 printf (" depth=%d, i=%d/%d\n", depth, i, nr_item); in search_stat()