Lines Matching refs:slots
176 ei = btrfs_item_ptr(leaf, path->slots[0], in insert_inline_extent()
1282 if (ret > 0 && path->slots[0] > 0 && check_prev) { in run_delalloc_nocow()
1285 path->slots[0] - 1); in run_delalloc_nocow()
1288 path->slots[0]--; in run_delalloc_nocow()
1293 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in run_delalloc_nocow()
1305 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in run_delalloc_nocow()
1311 path->slots[0]++; in run_delalloc_nocow()
1324 fi = btrfs_item_ptr(leaf, path->slots[0], in run_delalloc_nocow()
1338 path->slots[0]++; in run_delalloc_nocow()
1378 path->slots[0], fi); in run_delalloc_nocow()
1385 path->slots[0]++; in run_delalloc_nocow()
1396 path->slots[0]++; in run_delalloc_nocow()
2113 fi = btrfs_item_ptr(leaf, path->slots[0], in insert_reserved_file_extent()
2296 slot = path->slots[0]; in record_one_backref()
2309 path->slots[0]++; in record_one_backref()
2511 extent = btrfs_item_ptr(path->nodes[0], path->slots[0], in relink_extent_backref()
2548 path->slots[0]--; in relink_extent_backref()
2550 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in relink_extent_backref()
2552 fi = btrfs_item_ptr(leaf, path->slots[0], in relink_extent_backref()
2580 item = btrfs_item_ptr(leaf, path->slots[0], in relink_extent_backref()
2718 if (ret > 0 && path->slots[0] > 0) in record_old_file_extents()
2719 path->slots[0]--; in record_old_file_extents()
2733 slot = path->slots[0]; in record_old_file_extents()
2780 path->slots[0]++; in record_old_file_extents()
3368 if (path->slots[0] == 0) in btrfs_orphan_cleanup()
3370 path->slots[0]--; in btrfs_orphan_cleanup()
3375 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_orphan_cleanup()
3637 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_read_locked_inode()
3714 path->slots[0]++; in btrfs_read_locked_inode()
3716 path->slots[0] >= btrfs_header_nritems(leaf)) in btrfs_read_locked_inode()
3719 btrfs_item_key_to_cpu(leaf, &location, path->slots[0]); in btrfs_read_locked_inode()
3723 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_read_locked_inode()
3741 maybe_acls = acls_after_inode_item(leaf, path->slots[0], in btrfs_read_locked_inode()
3744 path->slots[0] = first_xattr_slot; in btrfs_read_locked_inode()
3864 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_update_inode_item()
4144 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_unlink_subvol()
4229 int slot = path->slots[0]; in truncate_inline_extent()
4366 if (path->slots[0] == 0) in btrfs_truncate_inode_items()
4368 path->slots[0]--; in btrfs_truncate_inode_items()
4374 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_truncate_inode_items()
4385 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_truncate_inode_items()
4393 path->slots[0], fi); in btrfs_truncate_inode_items()
4497 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
4500 path->slots[0] + 1 == pending_del_slot) { in btrfs_truncate_inode_items()
4503 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
4540 if (path->slots[0] == 0 || in btrfs_truncate_inode_items()
4541 path->slots[0] != pending_del_slot || in btrfs_truncate_inode_items()
4574 path->slots[0]--; in btrfs_truncate_inode_items()
5380 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in fixup_tree_root_location()
5772 slot = path->slots[0]; in btrfs_real_readdir()
5856 path->slots[0]++; in btrfs_real_readdir()
6030 if (path->slots[0] == 0) { in btrfs_set_inode_index_count()
6035 path->slots[0]--; in btrfs_set_inode_index_count()
6038 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_set_inode_index_count()
6200 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_new_inode()
6207 ref = btrfs_item_ptr(path->nodes[0], path->slots[0] + 1, in btrfs_new_inode()
6716 btrfs_item_nr(path->slots[0])); in uncompress_inline()
6808 if (path->slots[0] == 0) in btrfs_get_extent()
6810 path->slots[0]--; in btrfs_get_extent()
6814 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_extent()
6817 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6839 size = btrfs_file_extent_inline_len(leaf, path->slots[0], item); in btrfs_get_extent()
6844 path->slots[0]++; in btrfs_get_extent()
6845 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_get_extent()
6855 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_extent()
6884 size = btrfs_file_extent_inline_len(leaf, path->slots[0], item); in btrfs_get_extent()
7203 slot = path->slots[0]; in can_nocow_extent()
9719 ei = btrfs_item_ptr(leaf, path->slots[0], in btrfs_symlink()