Lines Matching refs:path_index

1601         int path_index,  in block_tree_block_dirty()  argument
1606 block_mac = &path->entry[path_index].block_mac; in block_tree_block_dirty()
1608 assert(path_index || in block_tree_block_dirty()
1634 if (!path_index) { in block_tree_block_dirty()
1656 int path_index, in block_tree_block_get_write() argument
1661 node_ro = block_get(tr, &path->entry[path_index].block_mac, NULL, ref); in block_tree_block_get_write()
1666 node_rw = block_tree_block_dirty(tr, path, path_index, node_ro); in block_tree_block_get_write()
1687 int path_index, in block_tree_path_put_dirty() argument
1697 if (path_index == (int)path->count) { in block_tree_path_put_dirty()
1698 assert(path_index < (int)countof(path->entry)); in block_tree_path_put_dirty()
1699 path->entry[path_index].block_mac = path->data; // copy data in block_tree_path_put_dirty()
1702 while (--path_index >= 0) { in block_tree_path_put_dirty()
1703 parent_node_rw = block_tree_block_get_write(tr, path, path_index, in block_tree_path_put_dirty()
1713 index = path->entry[path_index].index; in block_tree_path_put_dirty()
1714 assert(path_index == (int)path->count - 1 || !parent_is_leaf); in block_tree_path_put_dirty()
1725 &path->entry[path_index + 1].block_mac)); in block_tree_path_put_dirty()
1730 &path->entry[path_index + 1].block_mac) || in block_tree_path_put_dirty()
1734 &path->entry[path_index + 1].block_mac)) { in block_tree_path_put_dirty()
1739 tr, &path->entry[path_index + 1].block_mac)); in block_tree_path_put_dirty()
1744 &path->entry[path_index + 1].block_mac)); in block_tree_path_put_dirty()
1755 &path->entry[path_index + 1].block_mac)); in block_tree_path_put_dirty()
1758 &path->entry[path_index + 1].block_mac) || in block_tree_path_put_dirty()
1760 block_mac_copy_mac(tr, &path->entry[path_index + 1].block_mac, in block_tree_path_put_dirty()
1763 &path->entry[path_index + 1].block_mac)); in block_tree_path_put_dirty()
1792 int path_index, in block_tree_update_key() argument
1801 while (path_index >= 0) { in block_tree_update_key()
1802 assert(path_index < (int)countof(path->entry)); in block_tree_update_key()
1803 block_mac = &path->entry[path_index].block_mac; in block_tree_update_key()
1804 index = path->entry[path_index].index; in block_tree_update_key()
1806 path_index--; in block_tree_update_key()
1809 node_rw = block_tree_block_get_write(tr, path, path_index, &node_ref); in block_tree_update_key()
1835 assert(path->entry[path_index].prev_key == in block_tree_update_key()
1842 path->entry[path_index].prev_key = new_key; in block_tree_update_key()
1847 block_tree_path_put_dirty(tr, path, path_index, node_rw, &node_ref); in block_tree_update_key()