Lines Matching refs:chunk_offset

2918 static int btrfs_free_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset)  in btrfs_free_chunk()  argument
2931 key.offset = chunk_offset; in btrfs_free_chunk()
2953 static int btrfs_del_sys_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_del_sys_chunk() argument
2987 key.offset == chunk_offset) { in btrfs_del_sys_chunk()
3036 struct map_lookup *map, u64 chunk_offset) in remove_chunk_item() argument
3055 return btrfs_free_chunk(trans, chunk_offset); in remove_chunk_item()
3058 int btrfs_remove_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset) in btrfs_remove_chunk() argument
3067 em = btrfs_get_chunk_map(fs_info, chunk_offset, 1); in btrfs_remove_chunk()
3138 ret = remove_chunk_item(trans, map, chunk_offset); in btrfs_remove_chunk()
3170 ret = remove_chunk_item(trans, map, chunk_offset); in btrfs_remove_chunk()
3180 trace_btrfs_chunk_free(fs_info, map, chunk_offset, em->len); in btrfs_remove_chunk()
3183 ret = btrfs_del_sys_chunk(fs_info, chunk_offset); in btrfs_remove_chunk()
3199 ret = btrfs_remove_block_group(trans, chunk_offset, em); in btrfs_remove_chunk()
3215 int btrfs_relocate_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_relocate_chunk() argument
3245 ret = btrfs_relocate_block_group(fs_info, chunk_offset); in btrfs_relocate_chunk()
3250 block_group = btrfs_lookup_block_group(fs_info, chunk_offset); in btrfs_relocate_chunk()
3264 ret = btrfs_discard_extent(fs_info, chunk_offset, length, NULL); in btrfs_relocate_chunk()
3268 chunk_offset); in btrfs_relocate_chunk()
3272 chunk_offset); in btrfs_relocate_chunk()
3283 ret = btrfs_remove_chunk(trans, chunk_offset); in btrfs_relocate_chunk()
3368 u64 chunk_offset) in btrfs_may_alloc_data_chunk() argument
3374 cache = btrfs_lookup_block_group(fs_info, chunk_offset); in btrfs_may_alloc_data_chunk()
3576 static int chunk_usage_range_filter(struct btrfs_fs_info *fs_info, u64 chunk_offset, in chunk_usage_range_filter() argument
3585 cache = btrfs_lookup_block_group(fs_info, chunk_offset); in chunk_usage_range_filter()
3610 u64 chunk_offset, struct btrfs_balance_args *bargs) in chunk_usage_filter() argument
3616 cache = btrfs_lookup_block_group(fs_info, chunk_offset); in chunk_usage_filter()
3698 u64 chunk_offset, in chunk_vrange_filter() argument
3701 if (chunk_offset < bargs->vend && in chunk_vrange_filter()
3702 chunk_offset + btrfs_chunk_length(leaf, chunk) > bargs->vstart) in chunk_vrange_filter()
3738 struct btrfs_chunk *chunk, u64 chunk_offset) in should_balance_chunk() argument
3766 chunk_usage_filter(fs_info, chunk_offset, bargs)) { in should_balance_chunk()
3769 chunk_usage_range_filter(fs_info, chunk_offset, bargs)) { in should_balance_chunk()
3787 chunk_vrange_filter(leaf, chunk, chunk_offset, bargs)) { in should_balance_chunk()
4800 u64 chunk_offset; in btrfs_shrink_device() local
4897 chunk_offset = btrfs_dev_extent_chunk_offset(l, dev_extent); in btrfs_shrink_device()
4906 ret = btrfs_may_alloc_data_chunk(fs_info, chunk_offset); in btrfs_shrink_device()
4912 ret = btrfs_relocate_chunk(fs_info, chunk_offset); in btrfs_shrink_device()
4920 chunk_offset); in btrfs_shrink_device()
5659 bool btrfs_chunk_writeable(struct btrfs_fs_info *fs_info, u64 chunk_offset) in btrfs_chunk_writeable() argument
5667 em = btrfs_get_chunk_map(fs_info, chunk_offset, 1); in btrfs_chunk_writeable()
7984 u64 chunk_offset, u64 devid, in verify_one_dev_extent() argument
7998 em = lookup_extent_mapping(em_tree, chunk_offset, 1); in verify_one_dev_extent()
8158 u64 chunk_offset; in btrfs_verify_dev_extents() local
8170 chunk_offset = btrfs_dev_extent_chunk_offset(leaf, dext); in btrfs_verify_dev_extents()
8182 ret = verify_one_dev_extent(fs_info, chunk_offset, devid, in btrfs_verify_dev_extents()