• Home
  • Raw
  • Download

Lines Matching refs:slots

161 		if (path->slots[0]) {  in btrfs_lookup_extent_info()
162 path->slots[0]--; in btrfs_lookup_extent_info()
164 path->slots[0]); in btrfs_lookup_extent_info()
174 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_extent_info()
176 ei = btrfs_item_ptr(leaf, path->slots[0], in btrfs_lookup_extent_info()
481 if (path->slots[0] >= nritems) { in lookup_extent_data_ref()
493 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in lookup_extent_data_ref()
498 ref = btrfs_item_ptr(leaf, path->slots[0], in lookup_extent_data_ref()
510 path->slots[0]++; in lookup_extent_data_ref()
548 ref = btrfs_item_ptr(leaf, path->slots[0], in insert_extent_data_ref()
560 ref = btrfs_item_ptr(leaf, path->slots[0], in insert_extent_data_ref()
574 ref = btrfs_item_ptr(leaf, path->slots[0], in insert_extent_data_ref()
607 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in remove_extent_data_ref()
610 ref1 = btrfs_item_ptr(leaf, path->slots[0], in remove_extent_data_ref()
614 ref2 = btrfs_item_ptr(leaf, path->slots[0], in remove_extent_data_ref()
652 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in extent_data_ref_count()
670 ref1 = btrfs_item_ptr(leaf, path->slots[0], in extent_data_ref_count()
674 ref2 = btrfs_item_ptr(leaf, path->slots[0], in extent_data_ref_count()
754 if (path->slots[level] + 1 >= in find_next_key()
759 path->slots[level] + 1); in find_next_key()
762 path->slots[level] + 1); in find_next_key()
841 if (path->slots[0]) { in lookup_inline_extent_backref()
842 path->slots[0]--; in lookup_inline_extent_backref()
844 path->slots[0]); in lookup_inline_extent_backref()
873 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in lookup_inline_extent_backref()
881 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in lookup_inline_extent_backref()
999 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in setup_inline_extent_backref()
1007 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in setup_inline_extent_backref()
1015 end = (unsigned long)ei + btrfs_item_size_nr(leaf, path->slots[0]); in setup_inline_extent_backref()
1090 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in update_inline_extent_backref()
1127 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in update_inline_extent_backref()
1165 "path->slots[0]=%d path->nodes[0]:", path->slots[0]); in insert_inline_extent_backref()
1486 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in __btrfs_inc_extent_ref()
1487 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in __btrfs_inc_extent_ref()
1618 if (path->slots[0] > 0) { in run_delayed_extent_op()
1619 path->slots[0]--; in run_delayed_extent_op()
1621 path->slots[0]); in run_delayed_extent_op()
1643 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in run_delayed_extent_op()
1652 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in run_delayed_extent_op()
2317 if (path->slots[0] == 0) in check_committed_ref()
2320 path->slots[0]--; in check_committed_ref()
2322 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in check_committed_ref()
2328 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in check_committed_ref()
2329 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in check_committed_ref()
2969 extent_slot = path->slots[0]; in __btrfs_free_extent()
2987 if (path->slots[0] - extent_slot > 5) in __btrfs_free_extent()
3021 if (ret > 0 && skinny_metadata && path->slots[0]) { in __btrfs_free_extent()
3026 path->slots[0]--; in __btrfs_free_extent()
3028 path->slots[0]); in __btrfs_free_extent()
3056 extent_slot = path->slots[0]; in __btrfs_free_extent()
3147 if (path->slots[0] != extent_slot) { in __btrfs_free_extent()
3162 if (path->slots[0] != extent_slot + 1) { in __btrfs_free_extent()
3168 path->slots[0] = extent_slot; in __btrfs_free_extent()
3174 ret = btrfs_del_items(trans, extent_root, path, path->slots[0], in __btrfs_free_extent()
3215 path->slots[0], extent_slot); in __btrfs_free_extent()
4584 extent_item = btrfs_item_ptr(leaf, path->slots[0], in alloc_reserved_file_extent()
4668 extent_item = btrfs_item_ptr(leaf, path->slots[0], in alloc_reserved_tree_block()
4996 if (path->slots[wc->level] < wc->reada_slot) { in reada_walk_down()
5008 for (slot = path->slots[wc->level]; slot < nritems; slot++) { in reada_walk_down()
5016 if (slot == path->slots[wc->level]) in reada_walk_down()
5194 path->slots[level]); in do_walk_down()
5206 bytenr = btrfs_node_blockptr(path->nodes[level], path->slots[level]); in do_walk_down()
5208 path->slots[level]); in do_walk_down()
5245 path->slots[level]); in do_walk_down()
5288 path->slots[level] = 0; in do_walk_down()
5408 path->slots[level] = 0; in walk_up_proc()
5509 if (path->slots[level] >= in walk_down_tree()
5515 path->slots[level]++; in walk_down_tree()
5532 path->slots[level] = btrfs_header_nritems(path->nodes[level]); in walk_up_tree()
5535 if (path->slots[level] + 1 < in walk_up_tree()
5537 path->slots[level]++; in walk_up_tree()
5633 path->slots[level] = 0; in btrfs_drop_snapshot()
5715 path->slots[wc->drop_level]); in btrfs_drop_snapshot()
5858 path->slots[parent_level] = btrfs_header_nritems(parent); in btrfs_drop_subtree()
5863 path->slots[level] = 0; in btrfs_drop_subtree()