Lines Matching refs:chunk_offset

2942 static int btrfs_free_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset)  in btrfs_free_chunk()  argument
2955 key.offset = chunk_offset; in btrfs_free_chunk()
2977 static int btrfs_del_sys_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_del_sys_chunk() argument
3011 key.offset == chunk_offset) { in btrfs_del_sys_chunk()
3060 struct map_lookup *map, u64 chunk_offset) in remove_chunk_item() argument
3079 return btrfs_free_chunk(trans, chunk_offset); in remove_chunk_item()
3082 int btrfs_remove_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset) in btrfs_remove_chunk() argument
3091 em = btrfs_get_chunk_map(fs_info, chunk_offset, 1); in btrfs_remove_chunk()
3162 ret = remove_chunk_item(trans, map, chunk_offset); in btrfs_remove_chunk()
3194 ret = remove_chunk_item(trans, map, chunk_offset); in btrfs_remove_chunk()
3204 trace_btrfs_chunk_free(fs_info, map, chunk_offset, em->len); in btrfs_remove_chunk()
3207 ret = btrfs_del_sys_chunk(fs_info, chunk_offset); in btrfs_remove_chunk()
3223 ret = btrfs_remove_block_group(trans, chunk_offset, em); in btrfs_remove_chunk()
3239 int btrfs_relocate_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_relocate_chunk() argument
3269 ret = btrfs_relocate_block_group(fs_info, chunk_offset); in btrfs_relocate_chunk()
3274 block_group = btrfs_lookup_block_group(fs_info, chunk_offset); in btrfs_relocate_chunk()
3288 ret = btrfs_discard_extent(fs_info, chunk_offset, length, NULL); in btrfs_relocate_chunk()
3292 chunk_offset); in btrfs_relocate_chunk()
3296 chunk_offset); in btrfs_relocate_chunk()
3307 ret = btrfs_remove_chunk(trans, chunk_offset); in btrfs_relocate_chunk()
3392 u64 chunk_offset) in btrfs_may_alloc_data_chunk() argument
3398 cache = btrfs_lookup_block_group(fs_info, chunk_offset); in btrfs_may_alloc_data_chunk()
3600 static int chunk_usage_range_filter(struct btrfs_fs_info *fs_info, u64 chunk_offset, in chunk_usage_range_filter() argument
3609 cache = btrfs_lookup_block_group(fs_info, chunk_offset); in chunk_usage_range_filter()
3634 u64 chunk_offset, struct btrfs_balance_args *bargs) in chunk_usage_filter() argument
3640 cache = btrfs_lookup_block_group(fs_info, chunk_offset); in chunk_usage_filter()
3722 u64 chunk_offset, in chunk_vrange_filter() argument
3725 if (chunk_offset < bargs->vend && in chunk_vrange_filter()
3726 chunk_offset + btrfs_chunk_length(leaf, chunk) > bargs->vstart) in chunk_vrange_filter()
3762 struct btrfs_chunk *chunk, u64 chunk_offset) in should_balance_chunk() argument
3790 chunk_usage_filter(fs_info, chunk_offset, bargs)) { in should_balance_chunk()
3793 chunk_usage_range_filter(fs_info, chunk_offset, bargs)) { in should_balance_chunk()
3811 chunk_vrange_filter(leaf, chunk, chunk_offset, bargs)) { in should_balance_chunk()
4824 u64 chunk_offset; in btrfs_shrink_device() local
4921 chunk_offset = btrfs_dev_extent_chunk_offset(l, dev_extent); in btrfs_shrink_device()
4930 ret = btrfs_may_alloc_data_chunk(fs_info, chunk_offset); in btrfs_shrink_device()
4936 ret = btrfs_relocate_chunk(fs_info, chunk_offset); in btrfs_shrink_device()
4944 chunk_offset); in btrfs_shrink_device()
5683 bool btrfs_chunk_writeable(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_chunk_writeable() argument
5691 em = btrfs_get_chunk_map(fs_info, chunk_offset, 1); in btrfs_chunk_writeable()
8118 u64 chunk_offset, u64 devid, in verify_one_dev_extent() argument
8132 em = lookup_extent_mapping(em_tree, chunk_offset, 1); in verify_one_dev_extent()
8302 u64 chunk_offset; in btrfs_verify_dev_extents() local
8314 chunk_offset = btrfs_dev_extent_chunk_offset(leaf, dext); in btrfs_verify_dev_extents()
8326 ret = verify_one_dev_extent(fs_info, chunk_offset, devid, in btrfs_verify_dev_extents()