Lines Matching refs:num_bytes

769 				 u64 bytenr, u64 num_bytes,  in lookup_inline_extent_backref()  argument
792 key.offset = num_bytes; in lookup_inline_extent_backref()
828 key.offset == num_bytes) in lookup_inline_extent_backref()
834 key.offset = num_bytes; in lookup_inline_extent_backref()
847 bytenr, num_bytes, parent, root_objectid, owner, in lookup_inline_extent_backref()
1039 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument
1045 num_bytes, parent, root_objectid, in lookup_extent_backref()
1185 u64 bytenr, u64 num_bytes, u64 parent, in insert_inline_extent_backref() argument
1194 num_bytes, parent, root_objectid, in insert_inline_extent_backref()
1205 bytenr, num_bytes, root_objectid, path->slots[0]); in insert_inline_extent_backref()
1370 u64 num_bytes, u64 *actual_bytes) in btrfs_discard_extent() argument
1374 u64 end = bytenr + num_bytes; in btrfs_discard_extent()
1387 num_bytes = end - cur; in btrfs_discard_extent()
1388 stripes = btrfs_map_discard(fs_info, cur, &num_bytes, &num_stripes); in btrfs_discard_extent()
1425 cur += num_bytes; in btrfs_discard_extent()
1479 u64 num_bytes = node->num_bytes; in __btrfs_inc_extent_ref() local
1491 ret = insert_inline_extent_backref(trans, path, bytenr, num_bytes, in __btrfs_inc_extent_ref()
1562 .num_bytes = node->num_bytes, in run_delayed_data_ref()
1575 key.offset = node->num_bytes; in run_delayed_data_ref()
1643 key.offset = head->num_bytes; in run_delayed_extent_op()
1659 key.offset == head->num_bytes) in run_delayed_extent_op()
1667 key.offset = head->num_bytes; in run_delayed_extent_op()
1675 head->bytenr, head->num_bytes, head->level); in run_delayed_extent_op()
1728 .num_bytes = fs_info->nodesize, in run_delayed_tree_ref()
1758 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1777 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1781 node->bytenr, node->num_bytes, node->type, in run_one_delayed_ref()
1866 delayed_refs->pending_csums -= head->num_bytes; in btrfs_cleanup_ref_head_accounting()
1868 nr_csums = btrfs_csum_bytes_to_leaves(fs_info, head->num_bytes); in btrfs_cleanup_ref_head_accounting()
1918 btrfs_pin_extent(trans, head->bytenr, head->num_bytes, 1); in cleanup_ref_head()
1924 head->num_bytes); in cleanup_ref_head()
2514 ref.num_bytes = btrfs_file_extent_disk_num_bytes(buf, fi); in __btrfs_mod_ref()
2529 ref.num_bytes = fs_info->nodesize; in __btrfs_mod_ref()
2596 u64 bytenr, u64 num_bytes, int reserved) in pin_down_extent() argument
2602 cache->pinned += num_bytes; in pin_down_extent()
2604 num_bytes); in pin_down_extent()
2606 cache->reserved -= num_bytes; in pin_down_extent()
2607 cache->space_info->bytes_reserved -= num_bytes; in pin_down_extent()
2613 bytenr + num_bytes - 1, EXTENT_DIRTY, NULL); in pin_down_extent()
2618 u64 bytenr, u64 num_bytes, int reserved) in btrfs_pin_extent() argument
2625 pin_down_extent(trans, cache, bytenr, num_bytes, reserved); in btrfs_pin_extent()
2659 u64 start, u64 num_bytes) in __exclude_logged_extent() argument
2672 ret = btrfs_remove_free_space(block_group, start, num_bytes); in __exclude_logged_extent()
2967 u64 num_bytes = delta->num_bytes; in do_free_extent_accounting() local
2973 ret = btrfs_del_csums(trans, csum_root, bytenr, num_bytes); in do_free_extent_accounting()
2979 ret = btrfs_delete_raid_extent(trans, bytenr, num_bytes); in do_free_extent_accounting()
2992 ret = add_to_free_space_tree(trans, bytenr, num_bytes); in do_free_extent_accounting()
2998 ret = btrfs_update_block_group(trans, bytenr, num_bytes, false); in do_free_extent_accounting()
3092 u64 num_bytes = node->num_bytes; in __btrfs_free_extent() local
3119 ret = lookup_extent_backref(trans, path, &iref, bytenr, num_bytes, in __btrfs_free_extent()
3137 key.offset == num_bytes) { in __btrfs_free_extent()
3173 key.offset = num_bytes; in __btrfs_free_extent()
3192 key.offset == num_bytes) in __btrfs_free_extent()
3200 key.offset = num_bytes; in __btrfs_free_extent()
3299 .num_bytes = num_bytes, in __btrfs_free_extent()
3439 .num_bytes = buf->len, in btrfs_free_tree_block()
3535 btrfs_pin_extent(trans, ref->bytenr, ref->num_bytes, 1); in btrfs_free_extent()
3674 ffe_ctl->num_bytes, cluster_bg->start, in find_free_extent_clustered()
3720 ffe_ctl->num_bytes, aligned_cluster); in find_free_extent_clustered()
3724 ffe_ctl->num_bytes, ffe_ctl->search_start, in find_free_extent_clustered()
3770 ffe_ctl->num_bytes + ffe_ctl->empty_cluster + in find_free_extent_unclustered()
3782 ffe_ctl->num_bytes, ffe_ctl->empty_size, in find_free_extent_unclustered()
3836 u64 num_bytes = ffe_ctl->num_bytes; in do_allocation_zoned() local
3938 if (avail < num_bytes) { in do_allocation_zoned()
3976 block_group->alloc_offset += num_bytes; in do_allocation_zoned()
3978 ctl->free_space -= num_bytes; in do_allocation_zoned()
4259 ffe_ctl->num_bytes > space_info->max_extent_size) { in prepare_allocation_clustered()
4317 avail >= ffe_ctl->num_bytes) { in prepare_allocation_zoned()
4380 WARN_ON(ffe_ctl->num_bytes < fs_info->sectorsize); in find_free_extent()
4397 ffe_ctl->size_class = btrfs_calc_block_group_size_class(ffe_ctl->num_bytes); in find_free_extent()
4555 if (ffe_ctl->search_start + ffe_ctl->num_bytes > in find_free_extent()
4559 ffe_ctl->num_bytes); in find_free_extent()
4569 ffe_ctl->num_bytes, in find_free_extent()
4575 ffe_ctl->num_bytes); in find_free_extent()
4582 ins->offset = ffe_ctl->num_bytes; in find_free_extent()
4592 ffe_ctl->num_bytes + in find_free_extent()
4669 u64 num_bytes, u64 min_alloc_size, in btrfs_reserve_extent() argument
4675 bool final_tried = num_bytes == min_alloc_size; in btrfs_reserve_extent()
4683 WARN_ON(num_bytes < fs_info->sectorsize); in btrfs_reserve_extent()
4686 ffe_ctl.num_bytes = num_bytes; in btrfs_reserve_extent()
4700 num_bytes = min(num_bytes >> 1, ins->offset); in btrfs_reserve_extent()
4701 num_bytes = round_down(num_bytes, in btrfs_reserve_extent()
4703 num_bytes = max(num_bytes, min_alloc_size); in btrfs_reserve_extent()
4704 ram_bytes = num_bytes; in btrfs_reserve_extent()
4705 if (num_bytes == min_alloc_size) in btrfs_reserve_extent()
4714 flags, num_bytes, for_treelog, for_data_reloc); in btrfs_reserve_extent()
4717 num_bytes, 1); in btrfs_reserve_extent()
4763 u64 num_bytes) in alloc_reserved_extent() argument
4768 ret = remove_from_free_space_tree(trans, bytenr, num_bytes); in alloc_reserved_extent()
4772 ret = btrfs_update_block_group(trans, bytenr, num_bytes, true); in alloc_reserved_extent()
4776 bytenr, num_bytes); in alloc_reserved_extent()
4780 trace_btrfs_reserved_extent_alloc(fs_info, bytenr, num_bytes); in alloc_reserved_extent()
4884 extent_key.offset = node->num_bytes; in alloc_reserved_tree_block()
4942 .num_bytes = ins->offset, in btrfs_alloc_reserved_file_extent()
4973 .num_bytes = ins->offset, in btrfs_alloc_logged_file_extent()
5176 .num_bytes = ins.offset, in btrfs_alloc_tree_block()
5608 .num_bytes = root->fs_info->nodesize, in maybe_drop_reference()