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()
1327 num_bytes = end - cur; in btrfs_discard_extent()
1330 &num_bytes, &bioc, 0); in btrfs_discard_extent()
1375 cur += num_bytes; in btrfs_discard_extent()
1459 u64 num_bytes = node->num_bytes; in __btrfs_inc_extent_ref() local
1468 ret = insert_inline_extent_backref(trans, path, bytenr, num_bytes, in __btrfs_inc_extent_ref()
1520 ins.offset = node->num_bytes; in run_delayed_data_ref()
1601 key.offset = head->num_bytes; in run_delayed_extent_op()
1618 key.offset == head->num_bytes) in run_delayed_extent_op()
1626 key.offset = head->num_bytes; in run_delayed_extent_op()
1704 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); in run_one_delayed_ref()
1719 btrfs_pin_extent(trans, node->bytenr, node->num_bytes, 1); 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()
1848 head->bytenr, head->num_bytes); in cleanup_ref_head()
2390 u64 num_bytes; in __btrfs_mod_ref() local
2436 num_bytes = btrfs_file_extent_disk_num_bytes(buf, fi); in __btrfs_mod_ref()
2439 num_bytes, parent); in __btrfs_mod_ref()
2451 num_bytes = fs_info->nodesize; in __btrfs_mod_ref()
2453 num_bytes, parent); in __btrfs_mod_ref()
2522 u64 bytenr, u64 num_bytes, int reserved) in pin_down_extent() argument
2528 cache->pinned += num_bytes; in pin_down_extent()
2530 num_bytes); in pin_down_extent()
2532 cache->reserved -= num_bytes; in pin_down_extent()
2533 cache->space_info->bytes_reserved -= num_bytes; in pin_down_extent()
2539 bytenr + num_bytes - 1, GFP_NOFS | __GFP_NOFAIL); in pin_down_extent()
2544 u64 bytenr, u64 num_bytes, int reserved) in btrfs_pin_extent() argument
2551 pin_down_extent(trans, cache, bytenr, num_bytes, reserved); in btrfs_pin_extent()
2561 u64 bytenr, u64 num_bytes) in btrfs_pin_extent_for_log_replay() argument
2585 pin_down_extent(trans, cache, bytenr, num_bytes, 0); in btrfs_pin_extent_for_log_replay()
2588 ret = btrfs_remove_free_space(cache, bytenr, num_bytes); in btrfs_pin_extent_for_log_replay()
2595 u64 start, u64 num_bytes) in __exclude_logged_extent() argument
2613 ret = btrfs_remove_free_space(block_group, start, num_bytes); in __exclude_logged_extent()
2935 u64 num_bytes = node->num_bytes; in __btrfs_free_extent() local
2957 ret = lookup_extent_backref(trans, path, &iref, bytenr, num_bytes, in __btrfs_free_extent()
2975 key.offset == num_bytes) { in __btrfs_free_extent()
3011 key.offset = num_bytes; in __btrfs_free_extent()
3030 key.offset == num_bytes) in __btrfs_free_extent()
3038 key.offset = num_bytes; in __btrfs_free_extent()
3183 num_bytes); in __btrfs_free_extent()
3190 ret = add_to_free_space_tree(trans, bytenr, num_bytes); in __btrfs_free_extent()
3196 ret = btrfs_update_block_group(trans, bytenr, num_bytes, false); in __btrfs_free_extent()
3477 u64 num_bytes; member
3566 ffe_ctl->num_bytes, cluster_bg->start, in find_free_extent_clustered()
3572 ffe_ctl->search_start, ffe_ctl->num_bytes); in find_free_extent_clustered()
3613 ffe_ctl->num_bytes, aligned_cluster); in find_free_extent_clustered()
3617 ffe_ctl->num_bytes, ffe_ctl->search_start, in find_free_extent_clustered()
3624 ffe_ctl->num_bytes); in find_free_extent_clustered()
3633 btrfs_wait_block_group_cache_progress(bg, ffe_ctl->num_bytes + in find_free_extent_clustered()
3674 ffe_ctl->num_bytes + ffe_ctl->empty_cluster + in find_free_extent_unclustered()
3686 ffe_ctl->num_bytes, ffe_ctl->empty_size, in find_free_extent_unclustered()
3700 btrfs_wait_block_group_cache_progress(bg, ffe_ctl->num_bytes + in find_free_extent_unclustered()
3757 u64 num_bytes = ffe_ctl->num_bytes; in do_allocation_zoned() local
3844 if (avail < num_bytes) { in do_allocation_zoned()
3864 block_group->alloc_offset += num_bytes; in do_allocation_zoned()
3866 ctl->free_space -= num_bytes; in do_allocation_zoned()
4101 ffe_ctl->num_bytes > space_info->max_extent_size) { in prepare_allocation_clustered()
4198 WARN_ON(ffe_ctl->num_bytes < fs_info->sectorsize); in find_free_extent()
4225 trace_find_free_extent(root, ffe_ctl->num_bytes, ffe_ctl->empty_size, 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()
4388 ffe_ctl->num_bytes); in find_free_extent()
4395 ins->offset = ffe_ctl->num_bytes; in find_free_extent()
4398 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()
4654 u64 num_bytes; in alloc_reserved_tree_block() local
4664 num_bytes = fs_info->nodesize; in alloc_reserved_tree_block()
4666 extent_key.offset = node->num_bytes; in alloc_reserved_tree_block()
4669 num_bytes = node->num_bytes; in alloc_reserved_tree_block()
4714 num_bytes); in alloc_reserved_tree_block()