Home
last modified time | relevance | path

Searched refs:extref (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/fs/btrfs/
H A Dinode-item.c41 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()
72 /* Returns NULL if no extref found */
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()
256 struct btrfs_inode_extref *extref; btrfs_insert_inode_extref() local
[all...]
H A Dtree-log.c1001 struct btrfs_inode_extref *extref; in __add_inode_ref() local
1075 extref = btrfs_lookup_inode_extref(NULL, root, path, name, namelen, in __add_inode_ref()
1078 if (IS_ERR(extref)) { in __add_inode_ref()
1079 return PTR_ERR(extref); in __add_inode_ref()
1080 } else if (extref) { in __add_inode_ref()
1092 extref = (struct btrfs_inode_extref *)(base + cur_offset); in __add_inode_ref()
1094 victim_name_len = btrfs_inode_extref_name_len(leaf, extref); in __add_inode_ref()
1096 if (btrfs_inode_extref_parent(leaf, extref) != parent_objectid) in __add_inode_ref()
1102 read_extent_buffer(leaf, victim_name, (unsigned long)&extref->name, in __add_inode_ref()
1142 cur_offset += victim_name_len + sizeof(*extref); in __add_inode_ref()
1180 struct btrfs_inode_extref *extref; extref_get_fields() local
1629 struct btrfs_inode_extref *extref; count_inode_extrefs() local
4861 struct btrfs_inode_extref *extref; btrfs_check_ref_name_override() local
5841 struct btrfs_inode_extref *extref; btrfs_log_all_parents() local
[all...]
H A Dbackref.c1636 struct btrfs_inode_extref *extref; local
1686 extref = (struct btrfs_inode_extref *)ptr;
1687 *ret_extref = extref;
1697 * this iterates to turn a name (from iref/extref) into a full filesystem path.
2188 struct btrfs_inode_extref *extref; local
2194 ret = btrfs_find_one_extref(fs_root, inum, offset, path, &extref,
2219 extref = (struct btrfs_inode_extref *)(ptr + cur_offset);
2220 parent = btrfs_inode_extref_parent(eb, extref);
2221 name_len = btrfs_inode_extref_name_len(eb, extref);
2223 (unsigned long)&extref
[all...]
H A Dsend.c891 struct btrfs_inode_extref *extref; in iterate_inode_ref() local
927 elem_size = sizeof(*extref); in iterate_inode_ref()
940 extref = (struct btrfs_inode_extref *)(ptr + cur); in iterate_inode_ref()
941 name_len = btrfs_inode_extref_name_len(eb, extref); in iterate_inode_ref()
942 name_off = (unsigned long)&extref->name; in iterate_inode_ref()
943 index = btrfs_inode_extref_index(eb, extref); in iterate_inode_ref()
944 dir = btrfs_inode_extref_parent(eb, extref); in iterate_inode_ref()
1782 struct btrfs_inode_extref *extref; in get_first_ref() local
1783 extref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref()
1785 len = btrfs_inode_extref_name_len(path->nodes[0], extref); in get_first_ref()
3654 struct btrfs_inode_extref *extref; is_ancestor() local
6602 struct btrfs_inode_extref *extref; compare_refs() local
[all...]
H A Dinode.c3425 struct btrfs_inode_extref *extref; in btrfs_read_locked_inode() local
3427 extref = (struct btrfs_inode_extref *)ptr; in btrfs_read_locked_inode()
3429 extref); in btrfs_read_locked_inode()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dinode-item.c49 struct btrfs_inode_extref *extref; in btrfs_find_name_in_ext_backref() local
66 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in btrfs_find_name_in_ext_backref()
67 name_ptr = (unsigned long)(&extref->name); in btrfs_find_name_in_ext_backref()
68 ref_name_len = btrfs_inode_extref_name_len(leaf, extref); in btrfs_find_name_in_ext_backref()
71 btrfs_inode_extref_parent(leaf, extref) == ref_objectid && in btrfs_find_name_in_ext_backref()
74 return extref; in btrfs_find_name_in_ext_backref()
76 cur_offset += ref_name_len + sizeof(*extref); in btrfs_find_name_in_ext_backref()
81 /* Returns NULL if no extref found */
115 struct btrfs_inode_extref *extref; in btrfs_del_inode_extref() local
118 int del_len = name->len + sizeof(*extref); in btrfs_del_inode_extref()
260 struct btrfs_inode_extref *extref; btrfs_insert_inode_extref() local
[all...]
H A Dtree-log.c1063 struct btrfs_inode_extref *extref; in __add_inode_ref() local
1124 extref = btrfs_lookup_inode_extref(NULL, root, path, name, in __add_inode_ref()
1127 if (IS_ERR(extref)) { in __add_inode_ref()
1128 return PTR_ERR(extref); in __add_inode_ref()
1129 } else if (extref) { in __add_inode_ref()
1143 extref = (struct btrfs_inode_extref *)(base + cur_offset); in __add_inode_ref()
1145 if (btrfs_inode_extref_parent(leaf, extref) != parent_objectid) in __add_inode_ref()
1148 ret = read_alloc_one_name(leaf, &extref->name, in __add_inode_ref()
1149 btrfs_inode_extref_name_len(leaf, extref), in __add_inode_ref()
1184 cur_offset += victim_name.len + sizeof(*extref); in __add_inode_ref()
1219 struct btrfs_inode_extref *extref; extref_get_fields() local
1497 struct btrfs_inode_extref *extref; count_inode_extrefs() local
5234 struct btrfs_inode_extref *extref; btrfs_check_ref_name_override() local
6717 struct btrfs_inode_extref *extref; btrfs_log_all_parents() local
[all...]
H A Dbackref.c2057 struct btrfs_inode_extref *extref; in btrfs_find_one_extref() local
2107 extref = (struct btrfs_inode_extref *)ptr; in btrfs_find_one_extref()
2108 *ret_extref = extref; in btrfs_find_one_extref()
2118 * this iterates to turn a name (from iref/extref) into a full filesystem path.
2652 struct btrfs_inode_extref *extref; in iterate_inode_extrefs() local
2658 ret = btrfs_find_one_extref(fs_root, inum, offset, path, &extref, in iterate_inode_extrefs()
2683 extref = (struct btrfs_inode_extref *)(ptr + cur_offset); in iterate_inode_extrefs()
2684 parent = btrfs_inode_extref_parent(eb, extref); in iterate_inode_extrefs()
2685 name_len = btrfs_inode_extref_name_len(eb, extref); in iterate_inode_extrefs()
2687 (unsigned long)&extref in iterate_inode_extrefs()
[all...]
H A Dsend.c996 struct btrfs_inode_extref *extref; in iterate_inode_ref() local
1031 elem_size = sizeof(*extref); in iterate_inode_ref()
1044 extref = (struct btrfs_inode_extref *)(ptr + cur); in iterate_inode_ref()
1045 name_len = btrfs_inode_extref_name_len(eb, extref); in iterate_inode_ref()
1046 name_off = (unsigned long)&extref->name; in iterate_inode_ref()
1047 index = btrfs_inode_extref_index(eb, extref); in iterate_inode_ref()
1048 dir = btrfs_inode_extref_parent(eb, extref); in iterate_inode_ref()
2057 struct btrfs_inode_extref *extref; in get_first_ref() local
2058 extref = btrfs_item_ptr(path->nodes[0], path->slots[0], in get_first_ref()
2060 len = btrfs_inode_extref_name_len(path->nodes[0], extref); in get_first_ref()
3926 struct btrfs_inode_extref *extref; is_ancestor() local
7159 struct btrfs_inode_extref *extref; compare_refs() local
[all...]
H A Dinode.c3867 struct btrfs_inode_extref *extref; in btrfs_read_locked_inode() local
3869 extref = (struct btrfs_inode_extref *)ptr; in btrfs_read_locked_inode()
3871 extref); in btrfs_read_locked_inode()

Completed in 51 milliseconds