Lines Matching refs:num_bytes

67 			      u64 start, u64 num_bytes)  in btrfs_add_excluded_extent()  argument
69 u64 end = start + num_bytes - 1; in btrfs_add_excluded_extent()
785 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument
809 key.offset = num_bytes; in lookup_inline_extent_backref()
847 key.offset == num_bytes) in lookup_inline_extent_backref()
853 key.offset = num_bytes; in lookup_inline_extent_backref()
1040 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument
1046 num_bytes, parent, root_objectid, in lookup_extent_backref()
1137 u64 bytenr, u64 num_bytes, u64 parent, in insert_inline_extent_backref() argument
1146 num_bytes, parent, root_objectid, in insert_inline_extent_backref()
1156 bytenr, num_bytes, root_objectid); in insert_inline_extent_backref()
1310 u64 num_bytes, u64 *actual_bytes) in btrfs_discard_extent() argument
1314 u64 end = bytenr + num_bytes; in btrfs_discard_extent()
1328 num_bytes = end - cur; in btrfs_discard_extent()
1331 &num_bytes, &bbio, 0); in btrfs_discard_extent()
1376 cur += num_bytes; in btrfs_discard_extent()
1460 u64 num_bytes = node->num_bytes; in __btrfs_inc_extent_ref() local
1469 ret = insert_inline_extent_backref(trans, path, bytenr, num_bytes, in __btrfs_inc_extent_ref()
1521 ins.offset = node->num_bytes; in run_delayed_data_ref()
1602 key.offset = head->num_bytes; in run_delayed_extent_op()
1619 key.offset == head->num_bytes) in run_delayed_extent_op()
1627 key.offset = head->num_bytes; in run_delayed_extent_op()
1705 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1720 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1802 delayed_refs->pending_csums -= head->num_bytes; in btrfs_cleanup_ref_head_accounting()
1804 nr_items += btrfs_csum_bytes_to_leaves(fs_info, head->num_bytes); in btrfs_cleanup_ref_head_accounting()
1846 btrfs_pin_extent(trans, head->bytenr, head->num_bytes, 1); in cleanup_ref_head()
1849 head->bytenr, 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()
2453 num_bytes = fs_info->nodesize; in __btrfs_mod_ref()
2455 num_bytes, parent); in __btrfs_mod_ref()
2525 u64 bytenr, u64 num_bytes, int reserved) in pin_down_extent() argument
2531 cache->pinned += num_bytes; in pin_down_extent()
2533 num_bytes); in pin_down_extent()
2535 cache->reserved -= num_bytes; in pin_down_extent()
2536 cache->space_info->bytes_reserved -= num_bytes; in pin_down_extent()
2542 bytenr + num_bytes - 1, GFP_NOFS | __GFP_NOFAIL); in pin_down_extent()
2547 u64 bytenr, u64 num_bytes, int reserved) in btrfs_pin_extent() argument
2554 pin_down_extent(trans, cache, bytenr, num_bytes, reserved); in btrfs_pin_extent()
2564 u64 bytenr, u64 num_bytes) in btrfs_pin_extent_for_log_replay() argument
2588 pin_down_extent(trans, cache, bytenr, num_bytes, 0); in btrfs_pin_extent_for_log_replay()
2591 ret = btrfs_remove_free_space(cache, bytenr, num_bytes); in btrfs_pin_extent_for_log_replay()
2598 u64 start, u64 num_bytes) in __exclude_logged_extent() argument
2616 ret = btrfs_remove_free_space(block_group, start, num_bytes); in __exclude_logged_extent()
2938 u64 num_bytes = node->num_bytes; in __btrfs_free_extent() local
2960 ret = lookup_extent_backref(trans, path, &iref, bytenr, num_bytes, in __btrfs_free_extent()
2978 key.offset == num_bytes) { in __btrfs_free_extent()
3014 key.offset = num_bytes; in __btrfs_free_extent()
3033 key.offset == num_bytes) in __btrfs_free_extent()
3041 key.offset = num_bytes; in __btrfs_free_extent()
3186 num_bytes); in __btrfs_free_extent()
3193 ret = add_to_free_space_tree(trans, bytenr, num_bytes); in __btrfs_free_extent()
3199 ret = btrfs_update_block_group(trans, bytenr, num_bytes, 0); in __btrfs_free_extent()
3479 u64 num_bytes; member
3564 ffe_ctl->num_bytes, cluster_bg->start, in find_free_extent_clustered()
3570 ffe_ctl->search_start, ffe_ctl->num_bytes); in find_free_extent_clustered()
3611 ffe_ctl->num_bytes, aligned_cluster); in find_free_extent_clustered()
3615 ffe_ctl->num_bytes, ffe_ctl->search_start, in find_free_extent_clustered()
3622 ffe_ctl->num_bytes); in find_free_extent_clustered()
3631 btrfs_wait_block_group_cache_progress(bg, ffe_ctl->num_bytes + in find_free_extent_clustered()
3672 ffe_ctl->num_bytes + ffe_ctl->empty_cluster + in find_free_extent_unclustered()
3684 ffe_ctl->num_bytes, ffe_ctl->empty_size, in find_free_extent_unclustered()
3698 btrfs_wait_block_group_cache_progress(bg, ffe_ctl->num_bytes + in find_free_extent_unclustered()
3755 u64 num_bytes = ffe_ctl->num_bytes; in do_allocation_zoned() local
3800 if (avail < num_bytes) { in do_allocation_zoned()
3817 block_group->alloc_offset += num_bytes; in do_allocation_zoned()
3819 ctl->free_space -= num_bytes; in do_allocation_zoned()
4039 ffe_ctl->num_bytes > space_info->max_extent_size) { in prepare_allocation_clustered()
4120 u64 ram_bytes, u64 num_bytes, u64 empty_size, in find_free_extent() argument
4133 WARN_ON(num_bytes < fs_info->sectorsize); in find_free_extent()
4135 ffe_ctl.num_bytes = num_bytes; in find_free_extent()
4161 trace_find_free_extent(root, num_bytes, empty_size, flags); in find_free_extent()
4300 if (ffe_ctl.search_start + num_bytes > in find_free_extent()
4303 ffe_ctl.found_offset, num_bytes); in find_free_extent()
4313 num_bytes, delalloc); in find_free_extent()
4316 ffe_ctl.found_offset, num_bytes); in find_free_extent()
4323 ins->offset = num_bytes; in find_free_extent()
4326 num_bytes); in find_free_extent()
4402 u64 num_bytes, u64 min_alloc_size, in btrfs_reserve_extent() argument
4407 bool final_tried = num_bytes == min_alloc_size; in btrfs_reserve_extent()
4414 WARN_ON(num_bytes < fs_info->sectorsize); in btrfs_reserve_extent()
4415 ret = find_free_extent(root, ram_bytes, num_bytes, empty_size, in btrfs_reserve_extent()
4421 num_bytes = min(num_bytes >> 1, ins->offset); in btrfs_reserve_extent()
4422 num_bytes = round_down(num_bytes, in btrfs_reserve_extent()
4424 num_bytes = max(num_bytes, min_alloc_size); in btrfs_reserve_extent()
4425 ram_bytes = num_bytes; in btrfs_reserve_extent()
4426 if (num_bytes == min_alloc_size) in btrfs_reserve_extent()
4435 flags, num_bytes, for_treelog); in btrfs_reserve_extent()
4438 num_bytes, 1); in btrfs_reserve_extent()
4570 u64 num_bytes; in alloc_reserved_tree_block() local
4580 num_bytes = fs_info->nodesize; in alloc_reserved_tree_block()
4582 extent_key.offset = node->num_bytes; in alloc_reserved_tree_block()
4585 num_bytes = node->num_bytes; in alloc_reserved_tree_block()
4630 num_bytes); in alloc_reserved_tree_block()