Lines Matching refs:total_bytes
3675 u64 total_bytes, u64 bytes_used, in update_space_info() argument
3692 found->total_bytes += total_bytes; in update_space_info()
3693 found->disk_total += total_bytes * factor; in update_space_info()
3716 found->total_bytes = total_bytes; in update_space_info()
3717 found->disk_total = total_bytes * factor; in update_space_info()
3915 if (used + bytes > data_sinfo->total_bytes) { in btrfs_check_data_free_space()
3969 used + bytes - data_sinfo->total_bytes); in btrfs_check_data_free_space()
4064 u64 num_bytes = sinfo->total_bytes - sinfo->bytes_readonly; in should_alloc_chunk()
4124 left = info->total_bytes - info->bytes_used - info->bytes_pinned - in check_system_chunk()
4269 if (used + space_size >= space_info->total_bytes) in can_overcommit()
4299 if (used + bytes < space_info->total_bytes + avail) in can_overcommit()
4557 expected = div_factor_fine(space_info->total_bytes, 95); in btrfs_calc_reclaim_metadata_size()
4559 expected = div_factor_fine(space_info->total_bytes, 90); in btrfs_calc_reclaim_metadata_size()
4576 u64 thresh = div_factor_fine(space_info->total_bytes, 98); in need_do_async_reclaim()
4709 if (used <= space_info->total_bytes) { in reserve_metadata_bytes()
4710 if (used + orig_bytes <= space_info->total_bytes) { in reserve_metadata_bytes()
4729 num_bytes = used - space_info->total_bytes + in reserve_metadata_bytes()
5122 if (sinfo->total_bytes > num_bytes) { in update_global_block_rsv()
5123 num_bytes = sinfo->total_bytes - num_bytes; in update_global_block_rsv()
7141 info->total_bytes - info->bytes_used - info->bytes_pinned - in dump_space_info()
7146 info->total_bytes, info->bytes_used, info->bytes_pinned, in dump_space_info()
8793 min_allocable_bytes <= sinfo->total_bytes) { in set_block_group_ro()
8992 if ((space_info->total_bytes != block_group->key.offset) && in btrfs_can_relocate()
8995 min_free < space_info->total_bytes)) { in btrfs_can_relocate()
9061 if (device->total_bytes > device->bytes_used + min_free && in btrfs_can_relocate()
9815 WARN_ON(block_group->space_info->total_bytes in btrfs_remove_block_group()
9822 block_group->space_info->total_bytes -= block_group->key.offset; in btrfs_remove_block_group()
10091 u64 total_bytes = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_trim_fs() local
10097 if (range->len == total_bytes) in btrfs_trim_fs()