Lines Matching refs:bytes_used
662 u64 bytes_used; in caching_thread() local
666 bytes_used = block_group->length - block_group->used; in caching_thread()
667 block_group->space_info->bytes_used += bytes_used >> 1; in caching_thread()
766 u64 bytes_used; in btrfs_cache_block_group() local
770 bytes_used = cache->length - cache->used; in btrfs_cache_block_group()
771 cache->space_info->bytes_used += bytes_used >> 1; in btrfs_cache_block_group()
2147 int btrfs_make_block_group(struct btrfs_trans_handle *trans, u64 bytes_used, in btrfs_make_block_group() argument
2162 cache->used = bytes_used; in btrfs_make_block_group()
2181 u64 new_bytes_used = size - bytes_used; in btrfs_make_block_group()
2183 bytes_used += new_bytes_used >> 1; in btrfs_make_block_group()
2207 btrfs_update_space_info(fs_info, cache->flags, size, bytes_used, in btrfs_make_block_group()
2908 cache->space_info->bytes_used += num_bytes; in btrfs_update_block_group()
2918 cache->space_info->bytes_used -= num_bytes; in btrfs_update_block_group()
3050 u64 bytes_used = btrfs_space_info_used(sinfo, false); in should_alloc_chunk() local
3064 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
3068 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()