Lines Matching refs:num_refs
162 u64 num_refs; in btrfs_lookup_extent_info() local
214 num_refs = btrfs_extent_refs(leaf, ei); in btrfs_lookup_extent_info()
227 BUG_ON(num_refs == 0); in btrfs_lookup_extent_info()
229 num_refs = 0; in btrfs_lookup_extent_info()
260 BUG_ON(num_refs == 0); in btrfs_lookup_extent_info()
262 num_refs += head->ref_mod; in btrfs_lookup_extent_info()
268 WARN_ON(num_refs == 0); in btrfs_lookup_extent_info()
270 *refs = num_refs; in btrfs_lookup_extent_info()
562 u32 num_refs; in insert_extent_data_ref() local
589 num_refs = btrfs_shared_data_ref_count(leaf, ref); in insert_extent_data_ref()
590 num_refs += refs_to_add; in insert_extent_data_ref()
591 btrfs_set_shared_data_ref_count(leaf, ref, num_refs); in insert_extent_data_ref()
619 num_refs = btrfs_extent_data_ref_count(leaf, ref); in insert_extent_data_ref()
620 num_refs += refs_to_add; in insert_extent_data_ref()
621 btrfs_set_extent_data_ref_count(leaf, ref, num_refs); in insert_extent_data_ref()
639 u32 num_refs = 0; in remove_extent_data_ref() local
648 num_refs = btrfs_extent_data_ref_count(leaf, ref1); in remove_extent_data_ref()
652 num_refs = btrfs_shared_data_ref_count(leaf, ref2); in remove_extent_data_ref()
661 BUG_ON(num_refs < refs_to_drop); in remove_extent_data_ref()
662 num_refs -= refs_to_drop; in remove_extent_data_ref()
664 if (num_refs == 0) { in remove_extent_data_ref()
669 btrfs_set_extent_data_ref_count(leaf, ref1, num_refs); in remove_extent_data_ref()
671 btrfs_set_shared_data_ref_count(leaf, ref2, num_refs); in remove_extent_data_ref()
684 u32 num_refs = 0; in extent_data_ref_count() local
700 num_refs = btrfs_extent_data_ref_count(leaf, ref1); in extent_data_ref_count()
703 num_refs = btrfs_shared_data_ref_count(leaf, ref2); in extent_data_ref_count()
708 num_refs = btrfs_extent_data_ref_count(leaf, ref1); in extent_data_ref_count()
712 num_refs = btrfs_shared_data_ref_count(leaf, ref2); in extent_data_ref_count()
716 return num_refs; in extent_data_ref_count()