Lines Matching defs:ref1
214 static int comp_tree_refs(struct btrfs_delayed_tree_ref *ref1,
217 if (ref1->node.type == BTRFS_TREE_BLOCK_REF_KEY) {
218 if (ref1->root < ref2->root)
220 if (ref1->root > ref2->root)
223 if (ref1->parent < ref2->parent)
225 if (ref1->parent > ref2->parent)
234 static int comp_data_refs(struct btrfs_delayed_data_ref *ref1,
237 if (ref1->node.type == BTRFS_EXTENT_DATA_REF_KEY) {
238 if (ref1->root < ref2->root)
240 if (ref1->root > ref2->root)
242 if (ref1->objectid < ref2->objectid)
244 if (ref1->objectid > ref2->objectid)
246 if (ref1->offset < ref2->offset)
248 if (ref1->offset > ref2->offset)
251 if (ref1->parent < ref2->parent)
253 if (ref1->parent > ref2->parent)
259 static int comp_refs(struct btrfs_delayed_ref_node *ref1,
265 if (ref1->type < ref2->type)
267 if (ref1->type > ref2->type)
269 if (ref1->type == BTRFS_TREE_BLOCK_REF_KEY ||
270 ref1->type == BTRFS_SHARED_BLOCK_REF_KEY)
271 ret = comp_tree_refs(btrfs_delayed_node_to_tree_ref(ref1),
274 ret = comp_data_refs(btrfs_delayed_node_to_data_ref(ref1),
279 if (ref1->seq < ref2->seq)
281 if (ref1->seq > ref2->seq)