Lines Matching refs:num_bytes

397 					   u64 num_bytes)  in btrfs_wait_block_group_cache_progress()  argument
406 (cache->free_space_ctl->free_space >= num_bytes)); in btrfs_wait_block_group_cache_progress()
1218 u64 num_bytes; in inc_block_group_ro() local
1230 num_bytes = cache->length - cache->reserved - cache->pinned - in inc_block_group_ro()
1246 if (sinfo_used + num_bytes <= sinfo->total_bytes) in inc_block_group_ro()
1255 if (btrfs_can_overcommit(cache->fs_info, sinfo, num_bytes, in inc_block_group_ro()
1261 sinfo->bytes_readonly += num_bytes; in inc_block_group_ro()
2297 u64 num_bytes; in btrfs_dec_block_group_ro() local
2304 num_bytes = cache->length - cache->reserved - in btrfs_dec_block_group_ro()
2306 sinfo->bytes_readonly -= num_bytes; in btrfs_dec_block_group_ro()
2839 u64 bytenr, u64 num_bytes, int alloc) in btrfs_update_block_group() argument
2843 u64 total = num_bytes; in btrfs_update_block_group()
2853 old_val += num_bytes; in btrfs_update_block_group()
2855 old_val -= num_bytes; in btrfs_update_block_group()
2887 num_bytes = min(total, cache->length - byte_in_group); in btrfs_update_block_group()
2889 old_val += num_bytes; in btrfs_update_block_group()
2891 cache->reserved -= num_bytes; in btrfs_update_block_group()
2892 cache->space_info->bytes_reserved -= num_bytes; in btrfs_update_block_group()
2893 cache->space_info->bytes_used += num_bytes; in btrfs_update_block_group()
2894 cache->space_info->disk_used += num_bytes * factor; in btrfs_update_block_group()
2898 old_val -= num_bytes; in btrfs_update_block_group()
2900 cache->pinned += num_bytes; in btrfs_update_block_group()
2902 cache->space_info, num_bytes); in btrfs_update_block_group()
2903 cache->space_info->bytes_used -= num_bytes; in btrfs_update_block_group()
2904 cache->space_info->disk_used -= num_bytes * factor; in btrfs_update_block_group()
2910 num_bytes, in btrfs_update_block_group()
2913 bytenr, bytenr + num_bytes - 1, in btrfs_update_block_group()
2938 total -= num_bytes; in btrfs_update_block_group()
2939 bytenr += num_bytes; in btrfs_update_block_group()
2960 u64 ram_bytes, u64 num_bytes, int delalloc) in btrfs_add_reserved_bytes() argument
2970 cache->reserved += num_bytes; in btrfs_add_reserved_bytes()
2971 space_info->bytes_reserved += num_bytes; in btrfs_add_reserved_bytes()
2973 space_info->flags, num_bytes, 1); in btrfs_add_reserved_bytes()
2977 cache->delalloc_bytes += num_bytes; in btrfs_add_reserved_bytes()
2983 if (num_bytes < ram_bytes) in btrfs_add_reserved_bytes()
3003 u64 num_bytes, int delalloc) in btrfs_free_reserved_bytes() argument
3010 space_info->bytes_readonly += num_bytes; in btrfs_free_reserved_bytes()
3011 cache->reserved -= num_bytes; in btrfs_free_reserved_bytes()
3012 space_info->bytes_reserved -= num_bytes; in btrfs_free_reserved_bytes()
3016 cache->delalloc_bytes -= num_bytes; in btrfs_free_reserved_bytes()