Lines Matching refs:num_bytes

396 					   u64 num_bytes)  in btrfs_wait_block_group_cache_progress()  argument
405 (cache->free_space_ctl->free_space >= num_bytes)); in btrfs_wait_block_group_cache_progress()
1186 u64 num_bytes; in inc_block_group_ro() local
1212 num_bytes = cache->key.offset - cache->reserved - cache->pinned - in inc_block_group_ro()
1222 if (sinfo_used + num_bytes + min_allocable_bytes <= in inc_block_group_ro()
1224 sinfo->bytes_readonly += num_bytes; in inc_block_group_ro()
1238 sinfo_used, num_bytes, min_allocable_bytes); in inc_block_group_ro()
2098 u64 num_bytes; in btrfs_dec_block_group_ro() local
2105 num_bytes = cache->key.offset - cache->reserved - in btrfs_dec_block_group_ro()
2108 sinfo->bytes_readonly -= num_bytes; in btrfs_dec_block_group_ro()
2631 u64 bytenr, u64 num_bytes, int alloc) in btrfs_update_block_group() argument
2635 u64 total = num_bytes; in btrfs_update_block_group()
2645 old_val += num_bytes; in btrfs_update_block_group()
2647 old_val -= num_bytes; in btrfs_update_block_group()
2679 num_bytes = min(total, cache->key.offset - byte_in_group); in btrfs_update_block_group()
2681 old_val += num_bytes; in btrfs_update_block_group()
2683 cache->reserved -= num_bytes; in btrfs_update_block_group()
2684 cache->space_info->bytes_reserved -= num_bytes; in btrfs_update_block_group()
2685 cache->space_info->bytes_used += num_bytes; in btrfs_update_block_group()
2686 cache->space_info->disk_used += num_bytes * factor; in btrfs_update_block_group()
2690 old_val -= num_bytes; in btrfs_update_block_group()
2692 cache->pinned += num_bytes; in btrfs_update_block_group()
2694 cache->space_info, num_bytes); in btrfs_update_block_group()
2695 cache->space_info->bytes_used -= num_bytes; in btrfs_update_block_group()
2696 cache->space_info->disk_used -= num_bytes * factor; in btrfs_update_block_group()
2702 num_bytes, in btrfs_update_block_group()
2705 bytenr, bytenr + num_bytes - 1, in btrfs_update_block_group()
2728 total -= num_bytes; in btrfs_update_block_group()
2729 bytenr += num_bytes; in btrfs_update_block_group()
2750 u64 ram_bytes, u64 num_bytes, int delalloc) in btrfs_add_reserved_bytes() argument
2760 cache->reserved += num_bytes; in btrfs_add_reserved_bytes()
2761 space_info->bytes_reserved += num_bytes; in btrfs_add_reserved_bytes()
2763 space_info->flags, num_bytes, 1); in btrfs_add_reserved_bytes()
2767 cache->delalloc_bytes += num_bytes; in btrfs_add_reserved_bytes()
2786 u64 num_bytes, int delalloc) in btrfs_free_reserved_bytes() argument
2793 space_info->bytes_readonly += num_bytes; in btrfs_free_reserved_bytes()
2794 cache->reserved -= num_bytes; in btrfs_free_reserved_bytes()
2795 space_info->bytes_reserved -= num_bytes; in btrfs_free_reserved_bytes()
2799 cache->delalloc_bytes -= num_bytes; in btrfs_free_reserved_bytes()