Lines Matching defs:ref1
203 static int comp_tree_refs(struct btrfs_delayed_tree_ref *ref1,
206 if (ref1->node.type == BTRFS_TREE_BLOCK_REF_KEY) {
207 if (ref1->root < ref2->root)
209 if (ref1->root > ref2->root)
212 if (ref1->parent < ref2->parent)
214 if (ref1->parent > ref2->parent)
223 static int comp_data_refs(struct btrfs_delayed_data_ref *ref1,
226 if (ref1->node.type == BTRFS_EXTENT_DATA_REF_KEY) {
227 if (ref1->root < ref2->root)
229 if (ref1->root > ref2->root)
231 if (ref1->objectid < ref2->objectid)
233 if (ref1->objectid > ref2->objectid)
235 if (ref1->offset < ref2->offset)
237 if (ref1->offset > ref2->offset)
240 if (ref1->parent < ref2->parent)
242 if (ref1->parent > ref2->parent)
248 static int comp_refs(struct btrfs_delayed_ref_node *ref1,
254 if (ref1->type < ref2->type)
256 if (ref1->type > ref2->type)
258 if (ref1->type == BTRFS_TREE_BLOCK_REF_KEY ||
259 ref1->type == BTRFS_SHARED_BLOCK_REF_KEY)
260 ret = comp_tree_refs(btrfs_delayed_node_to_tree_ref(ref1),
263 ret = comp_data_refs(btrfs_delayed_node_to_data_ref(ref1),
268 if (ref1->seq < ref2->seq)
270 if (ref1->seq > ref2->seq)