Lines Matching refs:num_refs
124 u64 num_refs;
176 num_refs = btrfs_extent_refs(leaf, ei);
189 BUG_ON(num_refs == 0);
191 num_refs = 0;
222 BUG_ON(num_refs == 0);
224 num_refs += head->ref_mod;
230 WARN_ON(num_refs == 0);
232 *refs = num_refs;
524 u32 num_refs;
551 num_refs = btrfs_shared_data_ref_count(leaf, ref);
552 num_refs += refs_to_add;
553 btrfs_set_shared_data_ref_count(leaf, ref, num_refs);
581 num_refs = btrfs_extent_data_ref_count(leaf, ref);
582 num_refs += refs_to_add;
583 btrfs_set_extent_data_ref_count(leaf, ref, num_refs);
601 u32 num_refs = 0;
610 num_refs = btrfs_extent_data_ref_count(leaf, ref1);
614 num_refs = btrfs_shared_data_ref_count(leaf, ref2);
623 BUG_ON(num_refs < refs_to_drop);
624 num_refs -= refs_to_drop;
626 if (num_refs == 0) {
631 btrfs_set_extent_data_ref_count(leaf, ref1, num_refs);
633 btrfs_set_shared_data_ref_count(leaf, ref2, num_refs);
646 u32 num_refs = 0;
662 num_refs = btrfs_extent_data_ref_count(leaf, ref1);
665 num_refs = btrfs_shared_data_ref_count(leaf, ref2);
670 num_refs = btrfs_extent_data_ref_count(leaf, ref1);
674 num_refs = btrfs_shared_data_ref_count(leaf, ref2);
678 return num_refs;