Lines Matching refs:bytes_used
544 u64 bytes_used; in caching_thread() local
548 bytes_used = block_group->key.offset - in caching_thread()
550 block_group->space_info->bytes_used += bytes_used >> 1; in caching_thread()
661 u64 bytes_used; in cache_block_group() local
665 bytes_used = cache->key.offset - in cache_block_group()
667 cache->space_info->bytes_used += bytes_used >> 1; in cache_block_group()
3792 u64 total_bytes, u64 bytes_used, in update_space_info() argument
3811 found->bytes_used += bytes_used; in update_space_info()
3812 found->disk_used += bytes_used * factor; in update_space_info()
3836 found->bytes_used = bytes_used; in update_space_info()
3837 found->disk_used = bytes_used * factor; in update_space_info()
4022 used = data_sinfo->bytes_used + data_sinfo->bytes_reserved + in btrfs_alloc_data_chunk_ondemand()
4225 u64 num_allocated = sinfo->bytes_used + sinfo->bytes_reserved; in should_alloc_chunk()
4297 left = info->total_bytes - info->bytes_used - info->bytes_pinned - in check_system_chunk()
4469 used = space_info->bytes_used + space_info->bytes_reserved + in can_overcommit()
4764 used = space_info->bytes_used + space_info->bytes_reserved + in btrfs_calc_reclaim_metadata_size()
4791 if (space_info->bytes_used >= thresh) in need_do_async_reclaim()
4814 used = space_info->bytes_used + space_info->bytes_reserved + in btrfs_need_do_async_reclaim()
4910 used = space_info->bytes_used + space_info->bytes_reserved + in reserve_metadata_bytes()
5293 data_used = sinfo->bytes_used; in calc_global_metadata_size()
5300 meta_used = sinfo->bytes_used; in calc_global_metadata_size()
5326 num_bytes = sinfo->bytes_used + sinfo->bytes_pinned + in update_global_block_rsv()
5904 cache->space_info->bytes_used += num_bytes; in update_block_group()
5913 cache->space_info->bytes_used -= num_bytes; in update_block_group()
7507 info->total_bytes - info->bytes_used - info->bytes_pinned - in dump_space_info()
7512 info->total_bytes, info->bytes_used, info->bytes_pinned, in dump_space_info()
9146 if (sinfo->bytes_used + sinfo->bytes_reserved + sinfo->bytes_pinned + in inc_block_group_ro()
9348 (space_info->bytes_used + space_info->bytes_reserved + in btrfs_can_relocate()
9416 if (device->total_bytes > device->bytes_used + min_free && in btrfs_can_relocate()
9890 struct btrfs_root *root, u64 bytes_used, in btrfs_make_block_group() argument
9906 btrfs_set_block_group_used(&cache->item, bytes_used); in btrfs_make_block_group()
9931 u64 new_bytes_used = size - bytes_used; in btrfs_make_block_group()
9933 bytes_used += new_bytes_used >> 1; in btrfs_make_block_group()
9961 ret = update_space_info(root->fs_info, cache->flags, size, bytes_used, in btrfs_make_block_group()
10581 if (device->total_bytes <= device->bytes_used) in btrfs_trim_free_extents()