Lines Matching refs:extref
41 struct btrfs_inode_extref *extref; in btrfs_find_name_in_ext_backref() local
58 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in btrfs_find_name_in_ext_backref()
59 name_ptr = (unsigned long)(&extref->name); 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()
65 return extref; in btrfs_find_name_in_ext_backref()
67 cur_offset += ref_name_len + sizeof(*extref); in btrfs_find_name_in_ext_backref()
106 struct btrfs_inode_extref *extref; in btrfs_del_inode_extref() local
109 int del_len = name_len + sizeof(*extref); in btrfs_del_inode_extref()
135 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
137 if (!extref) { in btrfs_del_inode_extref()
146 *index = btrfs_inode_extref_index(leaf, extref); in btrfs_del_inode_extref()
157 ptr = (unsigned long)extref; in btrfs_del_inode_extref()
256 struct btrfs_inode_extref *extref; in btrfs_insert_inode_extref() local
258 int ins_len = name_len + sizeof(*extref); in btrfs_insert_inode_extref()
293 extref = (struct btrfs_inode_extref *)ptr; in btrfs_insert_inode_extref()
295 btrfs_set_inode_extref_name_len(path->nodes[0], extref, name_len); in btrfs_insert_inode_extref()
296 btrfs_set_inode_extref_index(path->nodes[0], extref, index); in btrfs_insert_inode_extref()
297 btrfs_set_inode_extref_parent(path->nodes[0], extref, ref_objectid); in btrfs_insert_inode_extref()
299 ptr = (unsigned long)&extref->name; in btrfs_insert_inode_extref()