Lines Matching refs:slots
159 if (path->slots[0]) { in btrfs_lookup_extent_info()
160 path->slots[0]--; in btrfs_lookup_extent_info()
162 path->slots[0]); in btrfs_lookup_extent_info()
172 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_extent_info()
174 ei = btrfs_item_ptr(leaf, path->slots[0], in btrfs_lookup_extent_info()
479 if (path->slots[0] >= nritems) { in lookup_extent_data_ref()
491 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in lookup_extent_data_ref()
496 ref = btrfs_item_ptr(leaf, path->slots[0], in lookup_extent_data_ref()
508 path->slots[0]++; in lookup_extent_data_ref()
546 ref = btrfs_item_ptr(leaf, path->slots[0], in insert_extent_data_ref()
558 ref = btrfs_item_ptr(leaf, path->slots[0], in insert_extent_data_ref()
572 ref = btrfs_item_ptr(leaf, path->slots[0], in insert_extent_data_ref()
605 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in remove_extent_data_ref()
608 ref1 = btrfs_item_ptr(leaf, path->slots[0], in remove_extent_data_ref()
612 ref2 = btrfs_item_ptr(leaf, path->slots[0], in remove_extent_data_ref()
650 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in extent_data_ref_count()
668 ref1 = btrfs_item_ptr(leaf, path->slots[0], in extent_data_ref_count()
672 ref2 = btrfs_item_ptr(leaf, path->slots[0], in extent_data_ref_count()
752 if (path->slots[level] + 1 >= in find_next_key()
757 path->slots[level] + 1); in find_next_key()
760 path->slots[level] + 1); in find_next_key()
838 if (path->slots[0]) { in lookup_inline_extent_backref()
839 path->slots[0]--; in lookup_inline_extent_backref()
841 path->slots[0]); in lookup_inline_extent_backref()
870 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in lookup_inline_extent_backref()
878 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in lookup_inline_extent_backref()
995 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in setup_inline_extent_backref()
1003 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in setup_inline_extent_backref()
1011 end = (unsigned long)ei + btrfs_item_size_nr(leaf, path->slots[0]); in setup_inline_extent_backref()
1086 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in update_inline_extent_backref()
1123 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in update_inline_extent_backref()
1161 "path->slots[0]=%d path->nodes[0]:", path->slots[0]); in insert_inline_extent_backref()
1451 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in __btrfs_inc_extent_ref()
1452 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in __btrfs_inc_extent_ref()
1585 if (path->slots[0] > 0) { in run_delayed_extent_op()
1586 path->slots[0]--; in run_delayed_extent_op()
1588 path->slots[0]); in run_delayed_extent_op()
1610 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in run_delayed_extent_op()
1619 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in run_delayed_extent_op()
2316 if (path->slots[0] == 0) in check_committed_ref()
2319 path->slots[0]--; in check_committed_ref()
2321 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in check_committed_ref()
2327 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in check_committed_ref()
2328 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in check_committed_ref()
3009 extent_slot = path->slots[0]; in __btrfs_free_extent()
3027 if (path->slots[0] - extent_slot > 5) in __btrfs_free_extent()
3062 if (ret > 0 && skinny_metadata && path->slots[0]) { in __btrfs_free_extent()
3067 path->slots[0]--; in __btrfs_free_extent()
3069 path->slots[0]); in __btrfs_free_extent()
3097 extent_slot = path->slots[0]; in __btrfs_free_extent()
3188 if (path->slots[0] != extent_slot) { in __btrfs_free_extent()
3203 if (path->slots[0] != extent_slot + 1) { in __btrfs_free_extent()
3209 path->slots[0] = extent_slot; in __btrfs_free_extent()
3215 ret = btrfs_del_items(trans, extent_root, path, path->slots[0], in __btrfs_free_extent()
3256 path->slots[0], extent_slot); in __btrfs_free_extent()
4386 extent_item = btrfs_item_ptr(leaf, path->slots[0], in alloc_reserved_file_extent()
4471 extent_item = btrfs_item_ptr(leaf, path->slots[0], in alloc_reserved_tree_block()
4775 if (path->slots[wc->level] < wc->reada_slot) { in reada_walk_down()
4787 for (slot = path->slots[wc->level]; slot < nritems; slot++) { in reada_walk_down()
4795 if (slot == path->slots[wc->level]) in reada_walk_down()
4973 path->slots[level]); in do_walk_down()
4985 bytenr = btrfs_node_blockptr(path->nodes[level], path->slots[level]); in do_walk_down()
4987 path->slots[level]); in do_walk_down()
5027 path->slots[level]); in do_walk_down()
5071 path->slots[level] = 0; in do_walk_down()
5190 path->slots[level] = 0; in walk_up_proc()
5292 if (path->slots[level] >= in walk_down_tree()
5298 path->slots[level]++; in walk_down_tree()
5315 path->slots[level] = btrfs_header_nritems(path->nodes[level]); in walk_up_tree()
5318 if (path->slots[level] + 1 < in walk_up_tree()
5320 path->slots[level]++; in walk_up_tree()
5414 path->slots[level] = 0; in btrfs_drop_snapshot()
5497 path->slots[wc->drop_level]); in btrfs_drop_snapshot()
5633 path->slots[parent_level] = btrfs_header_nritems(parent); in btrfs_drop_subtree()
5638 path->slots[level] = 0; in btrfs_drop_subtree()