Lines Matching refs:bytes_used
655 u64 bytes_used; in caching_thread() local
659 bytes_used = block_group->key.offset - in caching_thread()
661 block_group->space_info->bytes_used += bytes_used >> 1; in caching_thread()
761 u64 bytes_used; in btrfs_cache_block_group() local
765 bytes_used = cache->key.offset - in btrfs_cache_block_group()
767 cache->space_info->bytes_used += bytes_used >> 1; in btrfs_cache_block_group()
1900 int btrfs_make_block_group(struct btrfs_trans_handle *trans, u64 bytes_used, in btrfs_make_block_group() argument
1913 btrfs_set_block_group_used(&cache->item, bytes_used); in btrfs_make_block_group()
1936 u64 new_bytes_used = size - bytes_used; in btrfs_make_block_group()
1938 bytes_used += new_bytes_used >> 1; in btrfs_make_block_group()
1962 btrfs_update_space_info(fs_info, cache->flags, size, bytes_used, in btrfs_make_block_group()
2684 cache->space_info->bytes_used += num_bytes; in btrfs_update_block_group()
2694 cache->space_info->bytes_used -= num_bytes; in btrfs_update_block_group()
2819 u64 bytes_used = btrfs_space_info_used(sinfo, false); in should_alloc_chunk() local
2833 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
2837 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()