Lines Matching refs:slots
101 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
141 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
150 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_extref()
164 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref()
210 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name); in btrfs_del_inode_ref()
217 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_ref()
228 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref()
279 path->slots[0], in btrfs_insert_inode_extref()
291 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref()
292 ptr += btrfs_item_size(leaf, path->slots[0]) - ins_len; in btrfs_insert_inode_extref()
334 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], in btrfs_insert_inode_ref()
339 old_size = btrfs_item_size(path->nodes[0], path->slots[0]); in btrfs_insert_inode_ref()
341 ref = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_insert_inode_ref()
351 path->slots[0], in btrfs_insert_inode_ref()
359 ref = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_insert_inode_ref()
413 location->offset == (u64)-1 && path->slots[0] != 0) { in btrfs_lookup_inode()
414 slot = path->slots[0] - 1; in btrfs_lookup_inode()
419 path->slots[0]--; in btrfs_lookup_inode()
522 if (path->slots[0] == 0) in btrfs_truncate_inode_items()
524 path->slots[0]--; in btrfs_truncate_inode_items()
533 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_truncate_inode_items()
544 fi = btrfs_item_ptr(leaf, path->slots[0], in btrfs_truncate_inode_items()
555 path->slots[0]); in btrfs_truncate_inode_items()
655 ((path->slots[0] + 1) == pending_del_slot)); in btrfs_truncate_inode_items()
660 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
662 } else if (path->slots[0] + 1 == pending_del_slot) { in btrfs_truncate_inode_items()
665 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
697 if (path->slots[0] == 0 || in btrfs_truncate_inode_items()
698 path->slots[0] != pending_del_slot || in btrfs_truncate_inode_items()
732 path->slots[0]--; in btrfs_truncate_inode_items()