Lines Matching refs:num_refs
816 u64 num_refs; in btrfs_lookup_extent_info() local
869 num_refs = btrfs_extent_refs(leaf, ei); in btrfs_lookup_extent_info()
877 num_refs = btrfs_extent_refs_v0(leaf, ei0); in btrfs_lookup_extent_info()
884 BUG_ON(num_refs == 0); in btrfs_lookup_extent_info()
886 num_refs = 0; in btrfs_lookup_extent_info()
917 BUG_ON(num_refs == 0); in btrfs_lookup_extent_info()
919 num_refs += head->node.ref_mod; in btrfs_lookup_extent_info()
925 WARN_ON(num_refs == 0); in btrfs_lookup_extent_info()
927 *refs = num_refs; in btrfs_lookup_extent_info()
1255 u32 num_refs; in insert_extent_data_ref() local
1282 num_refs = btrfs_shared_data_ref_count(leaf, ref); in insert_extent_data_ref()
1283 num_refs += refs_to_add; in insert_extent_data_ref()
1284 btrfs_set_shared_data_ref_count(leaf, ref, num_refs); in insert_extent_data_ref()
1312 num_refs = btrfs_extent_data_ref_count(leaf, ref); in insert_extent_data_ref()
1313 num_refs += refs_to_add; in insert_extent_data_ref()
1314 btrfs_set_extent_data_ref_count(leaf, ref, num_refs); in insert_extent_data_ref()
1333 u32 num_refs = 0; in remove_extent_data_ref() local
1342 num_refs = btrfs_extent_data_ref_count(leaf, ref1); in remove_extent_data_ref()
1346 num_refs = btrfs_shared_data_ref_count(leaf, ref2); in remove_extent_data_ref()
1352 num_refs = btrfs_ref_count_v0(leaf, ref0); in remove_extent_data_ref()
1358 BUG_ON(num_refs < refs_to_drop); in remove_extent_data_ref()
1359 num_refs -= refs_to_drop; in remove_extent_data_ref()
1361 if (num_refs == 0) { in remove_extent_data_ref()
1366 btrfs_set_extent_data_ref_count(leaf, ref1, num_refs); in remove_extent_data_ref()
1368 btrfs_set_shared_data_ref_count(leaf, ref2, num_refs); in remove_extent_data_ref()
1374 btrfs_set_ref_count_v0(leaf, ref0, num_refs); in remove_extent_data_ref()
1389 u32 num_refs = 0; in extent_data_ref_count() local
1397 num_refs = btrfs_extent_data_ref_count(leaf, ref1); in extent_data_ref_count()
1400 num_refs = btrfs_shared_data_ref_count(leaf, ref2); in extent_data_ref_count()
1405 num_refs = btrfs_extent_data_ref_count(leaf, ref1); in extent_data_ref_count()
1409 num_refs = btrfs_shared_data_ref_count(leaf, ref2); in extent_data_ref_count()
1415 num_refs = btrfs_ref_count_v0(leaf, ref0); in extent_data_ref_count()
1420 return num_refs; in extent_data_ref_count()