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()
762 u64 bytes_used; in btrfs_cache_block_group() local
766 bytes_used = cache->key.offset - in btrfs_cache_block_group()
768 cache->space_info->bytes_used += bytes_used >> 1; in btrfs_cache_block_group()
1901 int btrfs_make_block_group(struct btrfs_trans_handle *trans, u64 bytes_used, in btrfs_make_block_group() argument
1914 btrfs_set_block_group_used(&cache->item, bytes_used); in btrfs_make_block_group()
1937 u64 new_bytes_used = size - bytes_used; in btrfs_make_block_group()
1939 bytes_used += new_bytes_used >> 1; in btrfs_make_block_group()
1963 btrfs_update_space_info(fs_info, cache->flags, size, bytes_used, in btrfs_make_block_group()
2685 cache->space_info->bytes_used += num_bytes; in btrfs_update_block_group()
2695 cache->space_info->bytes_used -= num_bytes; in btrfs_update_block_group()
2820 u64 bytes_used = btrfs_space_info_used(sinfo, false); in should_alloc_chunk() local
2834 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
2838 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()