Lines Matching refs:num_refs
113 u64 num_refs;
166 num_refs = btrfs_extent_refs(leaf, ei);
181 BUG_ON(num_refs == 0);
183 num_refs = 0;
214 BUG_ON(num_refs == 0);
216 num_refs += head->ref_mod;
222 WARN_ON(num_refs == 0);
224 *refs = num_refs;
516 u32 num_refs;
543 num_refs = btrfs_shared_data_ref_count(leaf, ref);
544 num_refs += refs_to_add;
545 btrfs_set_shared_data_ref_count(leaf, ref, num_refs);
573 num_refs = btrfs_extent_data_ref_count(leaf, ref);
574 num_refs += refs_to_add;
575 btrfs_set_extent_data_ref_count(leaf, ref, num_refs);
594 u32 num_refs = 0;
603 num_refs = btrfs_extent_data_ref_count(leaf, ref1);
607 num_refs = btrfs_shared_data_ref_count(leaf, ref2);
616 BUG_ON(num_refs < refs_to_drop);
617 num_refs -= refs_to_drop;
619 if (num_refs == 0) {
623 btrfs_set_extent_data_ref_count(leaf, ref1, num_refs);
625 btrfs_set_shared_data_ref_count(leaf, ref2, num_refs);
638 u32 num_refs = 0;
653 num_refs = btrfs_extent_data_ref_count(leaf, ref1);
656 num_refs = btrfs_shared_data_ref_count(leaf, ref2);
661 num_refs = btrfs_extent_data_ref_count(leaf, ref1);
665 num_refs = btrfs_shared_data_ref_count(leaf, ref2);
669 return num_refs;