Lines Matching refs:ref1
271 static int comp_data_refs(const struct btrfs_delayed_ref_node *ref1, in comp_data_refs() argument
274 if (ref1->data_ref.objectid < ref2->data_ref.objectid) in comp_data_refs()
276 if (ref1->data_ref.objectid > ref2->data_ref.objectid) in comp_data_refs()
278 if (ref1->data_ref.offset < ref2->data_ref.offset) in comp_data_refs()
280 if (ref1->data_ref.offset > ref2->data_ref.offset) in comp_data_refs()
285 static int comp_refs(const struct btrfs_delayed_ref_node *ref1, in comp_refs() argument
291 if (ref1->type < ref2->type) in comp_refs()
293 if (ref1->type > ref2->type) in comp_refs()
295 if (ref1->type == BTRFS_SHARED_BLOCK_REF_KEY || in comp_refs()
296 ref1->type == BTRFS_SHARED_DATA_REF_KEY) { in comp_refs()
297 if (ref1->parent < ref2->parent) in comp_refs()
299 if (ref1->parent > ref2->parent) in comp_refs()
302 if (ref1->ref_root < ref2->ref_root) in comp_refs()
304 if (ref1->ref_root > ref2->ref_root) in comp_refs()
306 if (ref1->type == BTRFS_EXTENT_DATA_REF_KEY) in comp_refs()
307 ret = comp_data_refs(ref1, ref2); in comp_refs()
312 if (ref1->seq < ref2->seq) in comp_refs()
314 if (ref1->seq > ref2->seq) in comp_refs()