Lines Matching refs:num_bytes

763 				 u64 bytenr, u64 num_bytes,  in lookup_inline_extent_backref()  argument
786 key.offset = num_bytes; in lookup_inline_extent_backref()
821 key.offset == num_bytes) in lookup_inline_extent_backref()
827 key.offset = num_bytes; in lookup_inline_extent_backref()
840 bytenr, num_bytes, parent, root_objectid, owner, in lookup_inline_extent_backref()
1052 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument
1058 num_bytes, parent, root_objectid, in lookup_extent_backref()
1197 u64 bytenr, u64 num_bytes, u64 parent, in insert_inline_extent_backref() argument
1206 num_bytes, parent, root_objectid, in insert_inline_extent_backref()
1217 bytenr, num_bytes, root_objectid, path->slots[0]); in insert_inline_extent_backref()
1382 u64 num_bytes, u64 *actual_bytes) in btrfs_discard_extent() argument
1386 u64 end = bytenr + num_bytes; in btrfs_discard_extent()
1399 num_bytes = end - cur; in btrfs_discard_extent()
1400 stripes = btrfs_map_discard(fs_info, cur, &num_bytes, &num_stripes); in btrfs_discard_extent()
1437 cur += num_bytes; in btrfs_discard_extent()
1491 u64 num_bytes = node->num_bytes; in __btrfs_inc_extent_ref() local
1503 ret = insert_inline_extent_backref(trans, path, bytenr, num_bytes, in __btrfs_inc_extent_ref()
1574 .num_bytes = node->num_bytes, in run_delayed_data_ref()
1587 key.offset = node->num_bytes; in run_delayed_data_ref()
1655 key.offset = head->num_bytes; in run_delayed_extent_op()
1671 key.offset == head->num_bytes) in run_delayed_extent_op()
1680 key.offset = head->num_bytes; in run_delayed_extent_op()
1687 head->bytenr, head->num_bytes, head->level); in run_delayed_extent_op()
1737 .num_bytes = fs_info->nodesize, in run_delayed_tree_ref()
1767 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1786 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1790 node->bytenr, node->num_bytes, node->type, in run_one_delayed_ref()
1841 delayed_refs->pending_csums -= head->num_bytes; in btrfs_cleanup_ref_head_accounting()
1843 nr_csums = btrfs_csum_bytes_to_leaves(fs_info, head->num_bytes); in btrfs_cleanup_ref_head_accounting()
1893 btrfs_pin_extent(trans, head->bytenr, head->num_bytes, 1); in cleanup_ref_head()
1899 head->num_bytes); in cleanup_ref_head()
2513 ref.num_bytes = btrfs_file_extent_disk_num_bytes(buf, fi); in __btrfs_mod_ref()
2528 ref.num_bytes = fs_info->nodesize; in __btrfs_mod_ref()
2595 u64 bytenr, u64 num_bytes, int reserved) in pin_down_extent() argument
2599 cache->pinned += num_bytes; in pin_down_extent()
2600 btrfs_space_info_update_bytes_pinned(cache->space_info, num_bytes); in pin_down_extent()
2602 cache->reserved -= num_bytes; in pin_down_extent()
2603 cache->space_info->bytes_reserved -= num_bytes; in pin_down_extent()
2609 bytenr + num_bytes - 1, EXTENT_DIRTY, NULL); in pin_down_extent()
2614 u64 bytenr, u64 num_bytes, int reserved) in btrfs_pin_extent() argument
2621 pin_down_extent(trans, cache, bytenr, num_bytes, reserved); in btrfs_pin_extent()
2655 u64 start, u64 num_bytes) in __exclude_logged_extent() argument
2668 ret = btrfs_remove_free_space(block_group, start, num_bytes); in __exclude_logged_extent()
2978 u64 num_bytes = delta->num_bytes; in do_free_extent_accounting() local
2984 ret = btrfs_del_csums(trans, csum_root, bytenr, num_bytes); in do_free_extent_accounting()
2990 ret = btrfs_delete_raid_extent(trans, bytenr, num_bytes); in do_free_extent_accounting()
3003 ret = btrfs_add_to_free_space_tree(trans, bytenr, num_bytes); in do_free_extent_accounting()
3009 ret = btrfs_update_block_group(trans, bytenr, num_bytes, false); in do_free_extent_accounting()
3103 u64 num_bytes = node->num_bytes; in __btrfs_free_extent() local
3130 ret = lookup_extent_backref(trans, path, &iref, bytenr, num_bytes, in __btrfs_free_extent()
3148 key.offset == num_bytes) { in __btrfs_free_extent()
3184 key.offset = num_bytes; in __btrfs_free_extent()
3203 key.offset == num_bytes) in __btrfs_free_extent()
3211 key.offset = num_bytes; in __btrfs_free_extent()
3309 .num_bytes = num_bytes, in __btrfs_free_extent()
3450 .num_bytes = buf->len, in btrfs_free_tree_block()
3540 btrfs_pin_extent(trans, ref->bytenr, ref->num_bytes, 1); in btrfs_free_extent()
3695 ffe_ctl->num_bytes, cluster_bg->start, in find_free_extent_clustered()
3741 ffe_ctl->num_bytes, aligned_cluster); in find_free_extent_clustered()
3745 ffe_ctl->num_bytes, ffe_ctl->search_start, in find_free_extent_clustered()
3791 ffe_ctl->num_bytes + ffe_ctl->empty_cluster + in find_free_extent_unclustered()
3803 ffe_ctl->num_bytes, ffe_ctl->empty_size, in find_free_extent_unclustered()
3857 u64 num_bytes = ffe_ctl->num_bytes; in do_allocation_zoned() local
3959 if (avail < num_bytes) { in do_allocation_zoned()
3997 block_group->alloc_offset += num_bytes; in do_allocation_zoned()
3999 ctl->free_space -= num_bytes; in do_allocation_zoned()
4266 ffe_ctl->num_bytes > space_info->max_extent_size) { in prepare_allocation_clustered()
4324 avail >= ffe_ctl->num_bytes) { in prepare_allocation_zoned()
4387 WARN_ON(ffe_ctl->num_bytes < fs_info->sectorsize); in find_free_extent()
4404 ffe_ctl->size_class = btrfs_calc_block_group_size_class(ffe_ctl->num_bytes); in find_free_extent()
4574 if (ffe_ctl->search_start + ffe_ctl->num_bytes > in find_free_extent()
4578 ffe_ctl->num_bytes); in find_free_extent()
4588 ffe_ctl->num_bytes, in find_free_extent()
4594 ffe_ctl->num_bytes); in find_free_extent()
4601 ins->offset = ffe_ctl->num_bytes; in find_free_extent()
4611 ffe_ctl->num_bytes + in find_free_extent()
4689 u64 num_bytes, u64 min_alloc_size, in btrfs_reserve_extent() argument
4695 bool final_tried = num_bytes == min_alloc_size; in btrfs_reserve_extent()
4703 WARN_ON(num_bytes < fs_info->sectorsize); in btrfs_reserve_extent()
4706 ffe_ctl.num_bytes = num_bytes; in btrfs_reserve_extent()
4720 num_bytes = min(num_bytes >> 1, ins->offset); in btrfs_reserve_extent()
4721 num_bytes = round_down(num_bytes, in btrfs_reserve_extent()
4723 num_bytes = max(num_bytes, min_alloc_size); in btrfs_reserve_extent()
4724 ram_bytes = num_bytes; in btrfs_reserve_extent()
4725 if (num_bytes == min_alloc_size) in btrfs_reserve_extent()
4734 flags, num_bytes, for_treelog, for_data_reloc); in btrfs_reserve_extent()
4737 num_bytes, 1); in btrfs_reserve_extent()
4783 u64 num_bytes) in alloc_reserved_extent() argument
4788 ret = btrfs_remove_from_free_space_tree(trans, bytenr, num_bytes); in alloc_reserved_extent()
4792 ret = btrfs_update_block_group(trans, bytenr, num_bytes, true); in alloc_reserved_extent()
4796 bytenr, num_bytes); in alloc_reserved_extent()
4800 trace_btrfs_reserved_extent_alloc(fs_info, bytenr, num_bytes); in alloc_reserved_extent()
4903 extent_key.offset = node->num_bytes; in alloc_reserved_tree_block()
4960 .num_bytes = ins->offset, in btrfs_alloc_reserved_file_extent()
4991 .num_bytes = ins->offset, in btrfs_alloc_logged_file_extent()
5194 .num_bytes = ins.offset, in btrfs_alloc_tree_block()
5624 .num_bytes = root->fs_info->nodesize, in maybe_drop_reference()