Lines Matching refs:ref1
228 static int comp_tree_refs(struct btrfs_delayed_tree_ref *ref1, in comp_tree_refs() argument
231 if (ref1->node.type == BTRFS_TREE_BLOCK_REF_KEY) { in comp_tree_refs()
232 if (ref1->root < ref2->root) in comp_tree_refs()
234 if (ref1->root > ref2->root) in comp_tree_refs()
237 if (ref1->parent < ref2->parent) in comp_tree_refs()
239 if (ref1->parent > ref2->parent) in comp_tree_refs()
248 static int comp_data_refs(struct btrfs_delayed_data_ref *ref1, in comp_data_refs() argument
251 if (ref1->node.type == BTRFS_EXTENT_DATA_REF_KEY) { in comp_data_refs()
252 if (ref1->root < ref2->root) in comp_data_refs()
254 if (ref1->root > ref2->root) in comp_data_refs()
256 if (ref1->objectid < ref2->objectid) in comp_data_refs()
258 if (ref1->objectid > ref2->objectid) in comp_data_refs()
260 if (ref1->offset < ref2->offset) in comp_data_refs()
262 if (ref1->offset > ref2->offset) in comp_data_refs()
265 if (ref1->parent < ref2->parent) in comp_data_refs()
267 if (ref1->parent > ref2->parent) in comp_data_refs()
273 static int comp_refs(struct btrfs_delayed_ref_node *ref1, in comp_refs() argument
279 if (ref1->type < ref2->type) in comp_refs()
281 if (ref1->type > ref2->type) in comp_refs()
283 if (ref1->type == BTRFS_TREE_BLOCK_REF_KEY || in comp_refs()
284 ref1->type == BTRFS_SHARED_BLOCK_REF_KEY) in comp_refs()
285 ret = comp_tree_refs(btrfs_delayed_node_to_tree_ref(ref1), in comp_refs()
288 ret = comp_data_refs(btrfs_delayed_node_to_data_ref(ref1), in comp_refs()
293 if (ref1->seq < ref2->seq) in comp_refs()
295 if (ref1->seq > ref2->seq) in comp_refs()