Lines Matching refs:path

252 			       struct inode *inode, struct treepath *path)  in restart_transaction()  argument
260 pathrelse(path); in restart_transaction()
287 INITIALIZE_PATH(path); in _get_block_create_0()
304 result = search_for_position_by_key(inode->i_sb, &key, &path); in _get_block_create_0()
306 pathrelse(&path); in _get_block_create_0()
323 bh = get_last_bh(&path); in _get_block_create_0()
324 ih = tp_item_head(&path); in _get_block_create_0()
333 blocknr = get_block_num(ind_item, path.pos_in_item); in _get_block_create_0()
337 if (path.pos_in_item == in _get_block_create_0()
353 pathrelse(&path); in _get_block_create_0()
364 pathrelse(&path); in _get_block_create_0()
413 if ((le_ih_k_offset(ih) + path.pos_in_item) > inode->i_size) in _get_block_create_0()
418 path.pos_in_item; in _get_block_create_0()
421 chars = ih_item_len(ih) - path.pos_in_item; in _get_block_create_0()
423 memcpy(p, ih_item_body(bh, ih) + path.pos_in_item, chars); in _get_block_create_0()
436 if (PATH_LAST_POSITION(&path) != (B_NR_ITEMS(bh) - 1)) in _get_block_create_0()
441 result = search_for_position_by_key(inode->i_sb, &key, &path); in _get_block_create_0()
445 bh = get_last_bh(&path); in _get_block_create_0()
446 ih = tp_item_head(&path); in _get_block_create_0()
453 pathrelse(&path); in _get_block_create_0()
642 struct treepath *path, int flags) in _allocate_block() argument
649 path, block); in _allocate_block()
652 return reiserfs_new_unf_blocknrs(th, inode, allocated_block_nr, path, in _allocate_block()
662 INITIALIZE_PATH(path); in reiserfs_get_block()
740 retval = search_for_position_by_key(inode->i_sb, &key, &path); in reiserfs_get_block()
746 bh = get_last_bh(&path); in reiserfs_get_block()
747 ih = tp_item_head(&path); in reiserfs_get_block()
748 item = tp_item_body(&path); in reiserfs_get_block()
749 pos_in_item = path.pos_in_item; in reiserfs_get_block()
758 pathrelse(&path); in reiserfs_get_block()
764 &path, create); in reiserfs_get_block()
773 retval = restart_transaction(th, inode, &path); in reiserfs_get_block()
791 && item_moved(&tmp_ih, &path)) { in reiserfs_get_block()
808 && item_moved(&tmp_ih, &path)) { in reiserfs_get_block()
823 pathrelse(&path); in reiserfs_get_block()
839 pathrelse(&path); in reiserfs_get_block()
872 PATH_LAST_POSITION(&path)++; in reiserfs_get_block()
875 reiserfs_insert_item(th, &path, &tmp_key, &tmp_ih, in reiserfs_get_block()
912 pathrelse(&path); in reiserfs_get_block()
956 direct2indirect(th, inode, &path, unbh, in reiserfs_get_block()
1075 reiserfs_paste_into_item(th, &path, &tmp_key, inode, in reiserfs_get_block()
1112 retval = restart_transaction(th, inode, &path); in reiserfs_get_block()
1123 retval = search_for_position_by_key(inode->i_sb, &key, &path); in reiserfs_get_block()
1135 pathrelse(&path); in reiserfs_get_block()
1138 bh = get_last_bh(&path); in reiserfs_get_block()
1139 ih = tp_item_head(&path); in reiserfs_get_block()
1140 item = tp_item_body(&path); in reiserfs_get_block()
1141 pos_in_item = path.pos_in_item; in reiserfs_get_block()
1157 reiserfs_check_path(&path); in reiserfs_get_block()
1237 static void init_inode(struct inode *inode, struct treepath *path) in init_inode() argument
1243 bh = PATH_PLAST_BUFFER(path); in init_inode()
1244 ih = tp_item_head(path); in init_inode()
1354 pathrelse(path); in init_inode()
1424 static void update_stat_data(struct treepath *path, struct inode *inode, in update_stat_data() argument
1430 bh = PATH_PLAST_BUFFER(path); in update_stat_data()
1431 ih = tp_item_head(path); in update_stat_data()
1451 INITIALIZE_PATH(path); in reiserfs_update_sd_size()
1465 retval = search_item(inode->i_sb, &key, &path); in reiserfs_update_sd_size()
1473 pos = PATH_LAST_POSITION(&path); in reiserfs_update_sd_size()
1474 pathrelse(&path); in reiserfs_update_sd_size()
1484 reiserfs_check_path(&path); in reiserfs_update_sd_size()
1493 bh = get_last_bh(&path); in reiserfs_update_sd_size()
1494 ih = tp_item_head(&path); in reiserfs_update_sd_size()
1501 && item_moved(&tmp_ih, &path)) { in reiserfs_update_sd_size()
1507 update_stat_data(&path, inode, size); in reiserfs_update_sd_size()
1509 pathrelse(&path); in reiserfs_update_sd_size()
1806 struct item_head *ih, struct treepath *path, in reiserfs_new_directory() argument
1845 retval = search_item(sb, &key, path); in reiserfs_new_directory()
1852 pathrelse(path); in reiserfs_new_directory()
1860 return reiserfs_insert_item(th, path, &key, ih, inode, body); in reiserfs_new_directory()
1870 struct treepath *path, const char *symname, in reiserfs_new_symlink() argument
1888 retval = search_item(sb, &key, path); in reiserfs_new_symlink()
1895 pathrelse(path); in reiserfs_new_symlink()
1903 return reiserfs_insert_item(th, path, &key, ih, inode, symname); in reiserfs_new_symlink()
2375 INITIALIZE_PATH(path); in map_block_for_writepage()
2401 retval = search_for_position_by_key(inode->i_sb, &key, &path); in map_block_for_writepage()
2407 bh = get_last_bh(&path); in map_block_for_writepage()
2408 ih = tp_item_head(&path); in map_block_for_writepage()
2409 item = tp_item_body(&path); in map_block_for_writepage()
2410 pos_in_item = path.pos_in_item; in map_block_for_writepage()
2442 && item_moved(&tmp_ih, &path)) { in map_block_for_writepage()
2452 && item_moved(&tmp_ih, &path)) { in map_block_for_writepage()
2481 pathrelse(&path); in map_block_for_writepage()