Lines Matching refs:bytes_used
542 u64 bytes_used; in caching_thread() local
546 bytes_used = block_group->key.offset - in caching_thread()
548 block_group->space_info->bytes_used += bytes_used >> 1; in caching_thread()
649 u64 bytes_used; in cache_block_group() local
653 bytes_used = cache->key.offset - in cache_block_group()
655 cache->space_info->bytes_used += bytes_used >> 1; in cache_block_group()
3934 u64 total_bytes, u64 bytes_used, in update_space_info() argument
3948 found->bytes_used += bytes_used; in update_space_info()
3949 found->disk_used += bytes_used * factor; in update_space_info()
3954 bytes_used - bytes_readonly); in update_space_info()
4110 return s_info->bytes_used + s_info->bytes_reserved + in btrfs_space_info_used()
4336 u64 bytes_used = btrfs_space_info_used(sinfo, false); in should_alloc_chunk() local
4348 bytes_used += calc_global_rsv_need_space(global_rsv); in should_alloc_chunk()
4358 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
4362 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()
4929 if ((space_info->bytes_used + space_info->bytes_reserved) >= thresh) in need_do_async_reclaim()
6119 cache->space_info->bytes_used += num_bytes; in update_block_group()
6128 cache->space_info->bytes_used -= num_bytes; in update_block_group()
7742 info->total_bytes, info->bytes_used, info->bytes_pinned, in dump_space_info()
9538 if (device->total_bytes > device->bytes_used + min_free && in btrfs_can_relocate()
10151 int btrfs_make_block_group(struct btrfs_trans_handle *trans, u64 bytes_used, in btrfs_make_block_group() argument
10164 btrfs_set_block_group_used(&cache->item, bytes_used); in btrfs_make_block_group()
10190 u64 new_bytes_used = size - bytes_used; in btrfs_make_block_group()
10192 bytes_used += new_bytes_used >> 1; in btrfs_make_block_group()
10216 update_space_info(fs_info, cache->flags, size, bytes_used, in btrfs_make_block_group()
10831 if (device->total_bytes <= device->bytes_used) in btrfs_trim_free_extents()