Lines Matching refs:num_bytes
73 u64 start, u64 num_bytes) in btrfs_add_excluded_extent() argument
75 u64 end = start + num_bytes - 1; in btrfs_add_excluded_extent()
794 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument
818 key.offset = num_bytes; in lookup_inline_extent_backref()
856 key.offset == num_bytes) in lookup_inline_extent_backref()
862 key.offset = num_bytes; in lookup_inline_extent_backref()
1055 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument
1061 num_bytes, parent, root_objectid, in lookup_extent_backref()
1150 u64 bytenr, u64 num_bytes, u64 parent, in insert_inline_extent_backref() argument
1159 num_bytes, parent, root_objectid, in insert_inline_extent_backref()
1169 bytenr, num_bytes, root_objectid); in insert_inline_extent_backref()
1319 u64 num_bytes, u64 *actual_bytes) in btrfs_discard_extent() argument
1323 u64 end = bytenr + num_bytes; in btrfs_discard_extent()
1336 num_bytes = end - cur; in btrfs_discard_extent()
1337 stripes = btrfs_map_discard(fs_info, cur, &num_bytes, &num_stripes); in btrfs_discard_extent()
1374 cur += num_bytes; in btrfs_discard_extent()
1452 u64 num_bytes = node->num_bytes; in __btrfs_inc_extent_ref() local
1461 ret = insert_inline_extent_backref(trans, path, bytenr, num_bytes, in __btrfs_inc_extent_ref()
1513 ins.offset = node->num_bytes; in run_delayed_data_ref()
1595 key.offset = head->num_bytes; in run_delayed_extent_op()
1613 key.offset == head->num_bytes) in run_delayed_extent_op()
1621 key.offset = head->num_bytes; in run_delayed_extent_op()
1699 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1714 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1718 node->bytenr, node->num_bytes, node->type, in run_one_delayed_ref()
1801 delayed_refs->pending_csums -= head->num_bytes; in btrfs_cleanup_ref_head_accounting()
1803 nr_items += btrfs_csum_bytes_to_leaves(fs_info, head->num_bytes); in btrfs_cleanup_ref_head_accounting()
1845 btrfs_pin_extent(trans, head->bytenr, head->num_bytes, 1); in cleanup_ref_head()
1851 head->num_bytes); in cleanup_ref_head()
2391 u64 num_bytes; in __btrfs_mod_ref() local
2437 num_bytes = btrfs_file_extent_disk_num_bytes(buf, fi); in __btrfs_mod_ref()
2440 num_bytes, parent); in __btrfs_mod_ref()
2452 num_bytes = fs_info->nodesize; in __btrfs_mod_ref()
2454 num_bytes, parent); in __btrfs_mod_ref()
2520 u64 bytenr, u64 num_bytes, int reserved) in pin_down_extent() argument
2526 cache->pinned += num_bytes; in pin_down_extent()
2528 num_bytes); in pin_down_extent()
2530 cache->reserved -= num_bytes; in pin_down_extent()
2531 cache->space_info->bytes_reserved -= num_bytes; in pin_down_extent()
2537 bytenr + num_bytes - 1, GFP_NOFS | __GFP_NOFAIL); in pin_down_extent()
2542 u64 bytenr, u64 num_bytes, int reserved) in btrfs_pin_extent() argument
2549 pin_down_extent(trans, cache, bytenr, num_bytes, reserved); in btrfs_pin_extent()
2559 u64 bytenr, u64 num_bytes) in btrfs_pin_extent_for_log_replay() argument
2576 pin_down_extent(trans, cache, bytenr, num_bytes, 0); in btrfs_pin_extent_for_log_replay()
2579 ret = btrfs_remove_free_space(cache, bytenr, num_bytes); in btrfs_pin_extent_for_log_replay()
2586 u64 start, u64 num_bytes) in __exclude_logged_extent() argument
2599 ret = btrfs_remove_free_space(block_group, start, num_bytes); in __exclude_logged_extent()
2836 u64 bytenr, u64 num_bytes, bool is_data) in do_free_extent_accounting() argument
2844 ret = btrfs_del_csums(trans, csum_root, bytenr, num_bytes); in do_free_extent_accounting()
2851 ret = add_to_free_space_tree(trans, bytenr, num_bytes); in do_free_extent_accounting()
2857 ret = btrfs_update_block_group(trans, bytenr, num_bytes, false); in do_free_extent_accounting()
2944 u64 num_bytes = node->num_bytes; in __btrfs_free_extent() local
2968 ret = lookup_extent_backref(trans, path, &iref, bytenr, num_bytes, in __btrfs_free_extent()
2986 key.offset == num_bytes) { in __btrfs_free_extent()
3021 key.offset = num_bytes; in __btrfs_free_extent()
3040 key.offset == num_bytes) in __btrfs_free_extent()
3048 key.offset = num_bytes; in __btrfs_free_extent()
3189 ret = do_free_extent_accounting(trans, bytenr, num_bytes, is_data); in __btrfs_free_extent()
3483 ffe_ctl->num_bytes, cluster_bg->start, in find_free_extent_clustered()
3529 ffe_ctl->num_bytes, aligned_cluster); in find_free_extent_clustered()
3533 ffe_ctl->num_bytes, ffe_ctl->search_start, in find_free_extent_clustered()
3547 btrfs_wait_block_group_cache_progress(bg, ffe_ctl->num_bytes + in find_free_extent_clustered()
3588 ffe_ctl->num_bytes + ffe_ctl->empty_cluster + in find_free_extent_unclustered()
3600 ffe_ctl->num_bytes, ffe_ctl->empty_size, in find_free_extent_unclustered()
3614 btrfs_wait_block_group_cache_progress(bg, ffe_ctl->num_bytes + in find_free_extent_unclustered()
3671 u64 num_bytes = ffe_ctl->num_bytes; in do_allocation_zoned() local
3770 if (avail < num_bytes) { in do_allocation_zoned()
3790 block_group->alloc_offset += num_bytes; in do_allocation_zoned()
3792 ctl->free_space -= num_bytes; in do_allocation_zoned()
4094 ffe_ctl->num_bytes > space_info->max_extent_size) { in prepare_allocation_clustered()
4191 WARN_ON(ffe_ctl->num_bytes < fs_info->sectorsize); in find_free_extent()
4210 ffe_ctl->size_class = btrfs_calc_block_group_size_class(ffe_ctl->num_bytes); in find_free_extent()
4369 if (ffe_ctl->search_start + ffe_ctl->num_bytes > in find_free_extent()
4373 ffe_ctl->num_bytes); in find_free_extent()
4383 ffe_ctl->num_bytes, in find_free_extent()
4389 ffe_ctl->num_bytes); in find_free_extent()
4396 ins->offset = ffe_ctl->num_bytes; in find_free_extent()
4474 u64 num_bytes, u64 min_alloc_size, in btrfs_reserve_extent() argument
4480 bool final_tried = num_bytes == min_alloc_size; in btrfs_reserve_extent()
4488 WARN_ON(num_bytes < fs_info->sectorsize); in btrfs_reserve_extent()
4491 ffe_ctl.num_bytes = num_bytes; in btrfs_reserve_extent()
4505 num_bytes = min(num_bytes >> 1, ins->offset); in btrfs_reserve_extent()
4506 num_bytes = round_down(num_bytes, in btrfs_reserve_extent()
4508 num_bytes = max(num_bytes, min_alloc_size); in btrfs_reserve_extent()
4509 ram_bytes = num_bytes; in btrfs_reserve_extent()
4510 if (num_bytes == min_alloc_size) in btrfs_reserve_extent()
4519 flags, num_bytes, for_treelog, for_data_reloc); in btrfs_reserve_extent()
4522 num_bytes, 1); in btrfs_reserve_extent()
4568 u64 num_bytes) in alloc_reserved_extent() argument
4573 ret = remove_from_free_space_tree(trans, bytenr, num_bytes); in alloc_reserved_extent()
4577 ret = btrfs_update_block_group(trans, bytenr, num_bytes, true); in alloc_reserved_extent()
4581 bytenr, num_bytes); in alloc_reserved_extent()
4585 trace_btrfs_reserved_extent_alloc(fs_info, bytenr, num_bytes); in alloc_reserved_extent()
4677 extent_key.offset = node->num_bytes; in alloc_reserved_tree_block()