Lines Matching refs:n_path_offset
310 int n_position, n_path_offset = p_s_chk_path->path_length; in get_lkey() local
313 RFALSE( n_path_offset < FIRST_PATH_ELEMENT_OFFSET, in get_lkey()
317 while ( n_path_offset-- > FIRST_PATH_ELEMENT_OFFSET ) { in get_lkey()
319 RFALSE( ! buffer_uptodate(PATH_OFFSET_PBUFFER(p_s_chk_path, n_path_offset)), in get_lkey()
323 if ( ! B_IS_IN_TREE(p_s_parent = PATH_OFFSET_PBUFFER(p_s_chk_path, n_path_offset)) ) in get_lkey()
326 if ( (n_position = PATH_OFFSET_POSITION(p_s_chk_path, n_path_offset)) > B_NR_ITEMS(p_s_parent) ) in get_lkey()
330 PATH_OFFSET_PBUFFER(p_s_chk_path, n_path_offset + 1)->b_blocknr ) in get_lkey()
350 n_path_offset = p_s_chk_path->path_length; in get_rkey() local
353 RFALSE( n_path_offset < FIRST_PATH_ELEMENT_OFFSET, in get_rkey()
356 while ( n_path_offset-- > FIRST_PATH_ELEMENT_OFFSET ) { in get_rkey()
358 RFALSE( ! buffer_uptodate(PATH_OFFSET_PBUFFER(p_s_chk_path, n_path_offset)), in get_rkey()
362 if ( ! B_IS_IN_TREE(p_s_parent = PATH_OFFSET_PBUFFER(p_s_chk_path, n_path_offset)) ) in get_rkey()
365 if ( (n_position = PATH_OFFSET_POSITION(p_s_chk_path, n_path_offset)) > B_NR_ITEMS(p_s_parent) ) in get_rkey()
369 … PATH_OFFSET_PBUFFER(p_s_chk_path, n_path_offset + 1)->b_blocknr ) in get_rkey()
429 int n_path_offset = p_s_search_path->path_length; in decrement_counters_in_path() local
431 RFALSE( n_path_offset < ILLEGAL_PATH_ELEMENT_OFFSET || in decrement_counters_in_path()
432 n_path_offset > EXTENDED_MAX_HEIGHT - 1, in decrement_counters_in_path()
433 "PAP-5080: illegal path offset of %d", n_path_offset); in decrement_counters_in_path()
435 while ( n_path_offset > ILLEGAL_PATH_ELEMENT_OFFSET ) { in decrement_counters_in_path()
438 bh = PATH_OFFSET_PBUFFER(p_s_search_path, n_path_offset--); in decrement_counters_in_path()
461 int n_path_offset = p_s_search_path->path_length; in pathrelse_and_restore() local
463 RFALSE( n_path_offset < ILLEGAL_PATH_ELEMENT_OFFSET, in pathrelse_and_restore()
466 while ( n_path_offset > ILLEGAL_PATH_ELEMENT_OFFSET ) { in pathrelse_and_restore()
468 n_path_offset)); in pathrelse_and_restore()
469 brelse(PATH_OFFSET_PBUFFER(p_s_search_path, n_path_offset--)); in pathrelse_and_restore()
478 int n_path_offset = p_s_search_path->path_length; in pathrelse() local
480 RFALSE( n_path_offset < ILLEGAL_PATH_ELEMENT_OFFSET, in pathrelse()
483 while ( n_path_offset > ILLEGAL_PATH_ELEMENT_OFFSET ) in pathrelse()
484 brelse(PATH_OFFSET_PBUFFER(p_s_search_path, n_path_offset--)); in pathrelse()