Lines Matching defs:num_refs
632 u64 num_refs;
659 num_refs = btrfs_extent_refs(leaf, ei);
667 num_refs = btrfs_extent_refs_v0(leaf, ei0);
673 BUG_ON(num_refs == 0);
675 num_refs = 0;
701 BUG_ON(num_refs == 0);
703 num_refs += head->node.ref_mod;
708 WARN_ON(num_refs == 0);
710 *refs = num_refs;
1037 u32 num_refs;
1064 num_refs = btrfs_shared_data_ref_count(leaf, ref);
1065 num_refs += refs_to_add;
1066 btrfs_set_shared_data_ref_count(leaf, ref, num_refs);
1094 num_refs = btrfs_extent_data_ref_count(leaf, ref);
1095 num_refs += refs_to_add;
1096 btrfs_set_extent_data_ref_count(leaf, ref, num_refs);
1115 u32 num_refs = 0;
1124 num_refs = btrfs_extent_data_ref_count(leaf, ref1);
1128 num_refs = btrfs_shared_data_ref_count(leaf, ref2);
1134 num_refs = btrfs_ref_count_v0(leaf, ref0);
1140 BUG_ON(num_refs < refs_to_drop);
1141 num_refs -= refs_to_drop;
1143 if (num_refs == 0) {
1147 btrfs_set_extent_data_ref_count(leaf, ref1, num_refs);
1149 btrfs_set_shared_data_ref_count(leaf, ref2, num_refs);
1155 btrfs_set_ref_count_v0(leaf, ref0, num_refs);
1171 u32 num_refs = 0;
1179 num_refs = btrfs_extent_data_ref_count(leaf, ref1);
1182 num_refs = btrfs_shared_data_ref_count(leaf, ref2);
1187 num_refs = btrfs_extent_data_ref_count(leaf, ref1);
1191 num_refs = btrfs_shared_data_ref_count(leaf, ref2);
1197 num_refs = btrfs_ref_count_v0(leaf, ref0);
1202 return num_refs;