Searched refs:extref (Results 1 – 5 of 5) sorted by relevance
/fs/btrfs/ |
D | inode-item.c | 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() [all …]
|
D | tree-log.c | 1028 struct btrfs_inode_extref *extref; in __add_inode_ref() local 1099 extref = btrfs_lookup_inode_extref(NULL, root, path, name, namelen, in __add_inode_ref() 1102 if (IS_ERR(extref)) { in __add_inode_ref() 1103 return PTR_ERR(extref); in __add_inode_ref() 1104 } else if (extref) { in __add_inode_ref() 1116 extref = (struct btrfs_inode_extref *)(base + cur_offset); in __add_inode_ref() 1118 victim_name_len = btrfs_inode_extref_name_len(leaf, extref); in __add_inode_ref() 1120 if (btrfs_inode_extref_parent(leaf, extref) != parent_objectid) in __add_inode_ref() 1126 read_extent_buffer(leaf, victim_name, (unsigned long)&extref->name, in __add_inode_ref() 1163 cur_offset += victim_name_len + sizeof(*extref); in __add_inode_ref() [all …]
|
D | backref.c | 1631 struct btrfs_inode_extref *extref; local 1681 extref = (struct btrfs_inode_extref *)ptr; 1682 *ret_extref = extref; 2164 struct btrfs_inode_extref *extref; local 2170 ret = btrfs_find_one_extref(fs_root, inum, offset, path, &extref, 2195 extref = (struct btrfs_inode_extref *)(ptr + cur_offset); 2196 parent = btrfs_inode_extref_parent(eb, extref); 2197 name_len = btrfs_inode_extref_name_len(eb, extref); 2199 (unsigned long)&extref->name, eb, ctx); 2203 cur_offset += btrfs_inode_extref_name_len(eb, extref); [all …]
|
D | send.c | 898 struct btrfs_inode_extref *extref; in iterate_inode_ref() local 934 elem_size = sizeof(*extref); in iterate_inode_ref() 947 extref = (struct btrfs_inode_extref *)(ptr + cur); in iterate_inode_ref() 948 name_len = btrfs_inode_extref_name_len(eb, extref); in iterate_inode_ref() 949 name_off = (unsigned long)&extref->name; in iterate_inode_ref() 950 index = btrfs_inode_extref_index(eb, extref); in iterate_inode_ref() 951 dir = btrfs_inode_extref_parent(eb, extref); in iterate_inode_ref() 1797 struct btrfs_inode_extref *extref; in get_first_ref() local 1798 extref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref() 1800 len = btrfs_inode_extref_name_len(path->nodes[0], extref); in get_first_ref() [all …]
|
D | inode.c | 4023 struct btrfs_inode_extref *extref; in btrfs_read_locked_inode() local 4025 extref = (struct btrfs_inode_extref *)ptr; in btrfs_read_locked_inode() 4027 extref); in btrfs_read_locked_inode()
|