Lines Matching refs:ref1
30 static int comp_tree_refs(struct btrfs_delayed_tree_ref *ref1, in comp_tree_refs() argument
33 if (ref1->node.type == BTRFS_TREE_BLOCK_REF_KEY) { in comp_tree_refs()
34 if (ref1->root < ref2->root) in comp_tree_refs()
36 if (ref1->root > ref2->root) in comp_tree_refs()
39 if (ref1->parent < ref2->parent) in comp_tree_refs()
41 if (ref1->parent > ref2->parent) in comp_tree_refs()
50 static int comp_data_refs(struct btrfs_delayed_data_ref *ref1, in comp_data_refs() argument
53 if (ref1->node.type == BTRFS_EXTENT_DATA_REF_KEY) { in comp_data_refs()
54 if (ref1->root < ref2->root) in comp_data_refs()
56 if (ref1->root > ref2->root) in comp_data_refs()
58 if (ref1->objectid < ref2->objectid) in comp_data_refs()
60 if (ref1->objectid > ref2->objectid) in comp_data_refs()
62 if (ref1->offset < ref2->offset) in comp_data_refs()
64 if (ref1->offset > ref2->offset) in comp_data_refs()
67 if (ref1->parent < ref2->parent) in comp_data_refs()
69 if (ref1->parent > ref2->parent) in comp_data_refs()
75 static int comp_refs(struct btrfs_delayed_ref_node *ref1, in comp_refs() argument
81 if (ref1->type < ref2->type) in comp_refs()
83 if (ref1->type > ref2->type) in comp_refs()
85 if (ref1->type == BTRFS_TREE_BLOCK_REF_KEY || in comp_refs()
86 ref1->type == BTRFS_SHARED_BLOCK_REF_KEY) in comp_refs()
87 ret = comp_tree_refs(btrfs_delayed_node_to_tree_ref(ref1), in comp_refs()
90 ret = comp_data_refs(btrfs_delayed_node_to_data_ref(ref1), in comp_refs()
95 if (ref1->seq < ref2->seq) in comp_refs()
97 if (ref1->seq > ref2->seq) in comp_refs()