Lines Matching refs:num_bytes
774 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument
798 key.offset = num_bytes; in lookup_inline_extent_backref()
836 key.offset == num_bytes) in lookup_inline_extent_backref()
842 key.offset = num_bytes; in lookup_inline_extent_backref()
855 bytenr, num_bytes, parent, root_objectid, owner, in lookup_inline_extent_backref()
1042 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument
1048 num_bytes, parent, root_objectid, in lookup_extent_backref()
1188 u64 bytenr, u64 num_bytes, u64 parent, in insert_inline_extent_backref() argument
1197 num_bytes, parent, root_objectid, in insert_inline_extent_backref()
1208 bytenr, num_bytes, root_objectid, path->slots[0]); in insert_inline_extent_backref()
1368 u64 num_bytes, u64 *actual_bytes) in btrfs_discard_extent() argument
1372 u64 end = bytenr + num_bytes; in btrfs_discard_extent()
1385 num_bytes = end - cur; in btrfs_discard_extent()
1386 stripes = btrfs_map_discard(fs_info, cur, &num_bytes, &num_stripes); in btrfs_discard_extent()
1423 cur += num_bytes; in btrfs_discard_extent()
1501 u64 num_bytes = node->num_bytes; in __btrfs_inc_extent_ref() local
1510 ret = insert_inline_extent_backref(trans, path, bytenr, num_bytes, in __btrfs_inc_extent_ref()
1561 ins.offset = node->num_bytes; in run_delayed_data_ref()
1643 key.offset = head->num_bytes; in run_delayed_extent_op()
1661 key.offset == head->num_bytes) in run_delayed_extent_op()
1669 key.offset = head->num_bytes; in run_delayed_extent_op()
1677 head->bytenr, head->num_bytes, extent_op->level); in run_delayed_extent_op()
1752 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1767 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1771 node->bytenr, node->num_bytes, node->type, in run_one_delayed_ref()
1854 delayed_refs->pending_csums -= head->num_bytes; in btrfs_cleanup_ref_head_accounting()
1856 nr_items += btrfs_csum_bytes_to_leaves(fs_info, head->num_bytes); in btrfs_cleanup_ref_head_accounting()
1898 btrfs_pin_extent(trans, head->bytenr, head->num_bytes, 1); in cleanup_ref_head()
1904 head->num_bytes); in cleanup_ref_head()
2420 u64 num_bytes; in __btrfs_mod_ref() local
2466 num_bytes = btrfs_file_extent_disk_num_bytes(buf, fi); in __btrfs_mod_ref()
2469 num_bytes, parent); in __btrfs_mod_ref()
2481 num_bytes = fs_info->nodesize; in __btrfs_mod_ref()
2483 num_bytes, parent); in __btrfs_mod_ref()
2549 u64 bytenr, u64 num_bytes, int reserved) in pin_down_extent() argument
2555 cache->pinned += num_bytes; in pin_down_extent()
2557 num_bytes); in pin_down_extent()
2559 cache->reserved -= num_bytes; in pin_down_extent()
2560 cache->space_info->bytes_reserved -= num_bytes; in pin_down_extent()
2566 bytenr + num_bytes - 1, EXTENT_DIRTY, NULL); in pin_down_extent()
2571 u64 bytenr, u64 num_bytes, int reserved) in btrfs_pin_extent() argument
2578 pin_down_extent(trans, cache, bytenr, num_bytes, reserved); in btrfs_pin_extent()
2588 u64 bytenr, u64 num_bytes) in btrfs_pin_extent_for_log_replay() argument
2605 pin_down_extent(trans, cache, bytenr, num_bytes, 0); in btrfs_pin_extent_for_log_replay()
2608 ret = btrfs_remove_free_space(cache, bytenr, num_bytes); in btrfs_pin_extent_for_log_replay()
2615 u64 start, u64 num_bytes) in __exclude_logged_extent() argument
2628 ret = btrfs_remove_free_space(block_group, start, num_bytes); in __exclude_logged_extent()
2865 u64 bytenr, u64 num_bytes, bool is_data) in do_free_extent_accounting() argument
2873 ret = btrfs_del_csums(trans, csum_root, bytenr, num_bytes); in do_free_extent_accounting()
2880 ret = add_to_free_space_tree(trans, bytenr, num_bytes); in do_free_extent_accounting()
2886 ret = btrfs_update_block_group(trans, bytenr, num_bytes, false); in do_free_extent_accounting()
2980 u64 num_bytes = node->num_bytes; in __btrfs_free_extent() local
3004 ret = lookup_extent_backref(trans, path, &iref, bytenr, num_bytes, in __btrfs_free_extent()
3022 key.offset == num_bytes) { in __btrfs_free_extent()
3058 key.offset = num_bytes; in __btrfs_free_extent()
3077 key.offset == num_bytes) in __btrfs_free_extent()
3085 key.offset = num_bytes; in __btrfs_free_extent()
3229 ret = do_free_extent_accounting(trans, bytenr, num_bytes, is_data); in __btrfs_free_extent()
3536 ffe_ctl->num_bytes, cluster_bg->start, in find_free_extent_clustered()
3582 ffe_ctl->num_bytes, aligned_cluster); in find_free_extent_clustered()
3586 ffe_ctl->num_bytes, ffe_ctl->search_start, in find_free_extent_clustered()
3632 ffe_ctl->num_bytes + ffe_ctl->empty_cluster + in find_free_extent_unclustered()
3644 ffe_ctl->num_bytes, ffe_ctl->empty_size, in find_free_extent_unclustered()
3698 u64 num_bytes = ffe_ctl->num_bytes; in do_allocation_zoned() local
3800 if (avail < num_bytes) { in do_allocation_zoned()
3838 block_group->alloc_offset += num_bytes; in do_allocation_zoned()
3840 ctl->free_space -= num_bytes; in do_allocation_zoned()
4121 ffe_ctl->num_bytes > space_info->max_extent_size) { in prepare_allocation_clustered()
4179 avail >= ffe_ctl->num_bytes) { in prepare_allocation_zoned()
4242 WARN_ON(ffe_ctl->num_bytes < fs_info->sectorsize); in find_free_extent()
4259 ffe_ctl->size_class = btrfs_calc_block_group_size_class(ffe_ctl->num_bytes); in find_free_extent()
4417 if (ffe_ctl->search_start + ffe_ctl->num_bytes > in find_free_extent()
4421 ffe_ctl->num_bytes); in find_free_extent()
4431 ffe_ctl->num_bytes, in find_free_extent()
4437 ffe_ctl->num_bytes); in find_free_extent()
4444 ins->offset = ffe_ctl->num_bytes; in find_free_extent()
4454 ffe_ctl->num_bytes + in find_free_extent()
4531 u64 num_bytes, u64 min_alloc_size, in btrfs_reserve_extent() argument
4537 bool final_tried = num_bytes == min_alloc_size; in btrfs_reserve_extent()
4545 WARN_ON(num_bytes < fs_info->sectorsize); in btrfs_reserve_extent()
4548 ffe_ctl.num_bytes = num_bytes; in btrfs_reserve_extent()
4562 num_bytes = min(num_bytes >> 1, ins->offset); in btrfs_reserve_extent()
4563 num_bytes = round_down(num_bytes, in btrfs_reserve_extent()
4565 num_bytes = max(num_bytes, min_alloc_size); in btrfs_reserve_extent()
4566 ram_bytes = num_bytes; in btrfs_reserve_extent()
4567 if (num_bytes == min_alloc_size) in btrfs_reserve_extent()
4576 flags, num_bytes, for_treelog, for_data_reloc); in btrfs_reserve_extent()
4579 num_bytes, 1); in btrfs_reserve_extent()
4625 u64 num_bytes) in alloc_reserved_extent() argument
4630 ret = remove_from_free_space_tree(trans, bytenr, num_bytes); in alloc_reserved_extent()
4634 ret = btrfs_update_block_group(trans, bytenr, num_bytes, true); in alloc_reserved_extent()
4638 bytenr, num_bytes); in alloc_reserved_extent()
4642 trace_btrfs_reserved_extent_alloc(fs_info, bytenr, num_bytes); in alloc_reserved_extent()
4734 extent_key.offset = node->num_bytes; in alloc_reserved_tree_block()