Lines Matching refs:leaf
11 struct btrfs_inode_ref *btrfs_find_name_in_backref(struct extent_buffer *leaf, in btrfs_find_name_in_backref() argument
22 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_find_name_in_backref()
23 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_backref()
26 len = btrfs_inode_ref_name_len(leaf, ref); in btrfs_find_name_in_backref()
31 if (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0) in btrfs_find_name_in_backref()
38 struct extent_buffer *leaf, int slot, u64 ref_objectid, in btrfs_find_name_in_ext_backref() argument
48 item_size = btrfs_item_size_nr(leaf, slot); in btrfs_find_name_in_ext_backref()
49 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_ext_backref()
60 ref_name_len = btrfs_inode_extref_name_len(leaf, extref); in btrfs_find_name_in_ext_backref()
63 btrfs_inode_extref_parent(leaf, extref) == ref_objectid && in btrfs_find_name_in_ext_backref()
64 (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0)) in btrfs_find_name_in_ext_backref()
107 struct extent_buffer *leaf; in btrfs_del_inode_extref() local
141 leaf = path->nodes[0]; in btrfs_del_inode_extref()
142 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_extref()
144 *index = btrfs_inode_extref_index(leaf, extref); in btrfs_del_inode_extref()
156 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref()
158 memmove_extent_buffer(leaf, ptr, ptr + del_len, in btrfs_del_inode_extref()
177 struct extent_buffer *leaf; in btrfs_del_inode_ref() local
210 leaf = path->nodes[0]; in btrfs_del_inode_ref()
211 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_ref()
214 *index = btrfs_inode_ref_index(leaf, ref); in btrfs_del_inode_ref()
222 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref()
223 memmove_extent_buffer(leaf, ptr, ptr + sub_item_len, in btrfs_del_inode_ref()
258 struct extent_buffer *leaf; in btrfs_insert_inode_extref() local
284 leaf = path->nodes[0]; in btrfs_insert_inode_extref()
286 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref()
287 ptr += btrfs_item_size(leaf, item) - ins_len; in btrfs_insert_inode_extref()
405 struct extent_buffer *leaf; in btrfs_lookup_inode() local
412 leaf = path->nodes[0]; in btrfs_lookup_inode()
413 btrfs_item_key_to_cpu(leaf, &found_key, slot); in btrfs_lookup_inode()