Lines Matching defs:num_bytes

445  * num_bytes.  Another option is to have it go ahead and look in the rbtree for
452 u64 num_bytes)
471 (cache->free_space_ctl->free_space >= num_bytes)));
1413 u64 num_bytes;
1430 num_bytes = btrfs_block_group_available_space(cache);
1445 if (sinfo_used + num_bytes <= sinfo->total_bytes)
1454 if (btrfs_can_overcommit(sinfo, num_bytes, BTRFS_RESERVE_NO_FLUSH))
1459 sinfo->bytes_readonly += num_bytes;
2775 u64 start, u64 num_bytes)
2804 btrfs_set_dev_extent_length(leaf, extent, num_bytes);
3806 u64 bytenr, u64 num_bytes, bool alloc)
3820 old_val += num_bytes;
3822 old_val -= num_bytes;
3831 ASSERT(bytenr + num_bytes <= btrfs_block_group_end(cache));
3854 old_val += num_bytes;
3856 cache->reserved -= num_bytes;
3858 space_info->bytes_reserved -= num_bytes;
3859 space_info->bytes_used += num_bytes;
3860 space_info->disk_used += num_bytes * factor;
3862 btrfs_space_info_update_reclaimable(space_info, -num_bytes);
3866 old_val -= num_bytes;
3868 cache->pinned += num_bytes;
3870 btrfs_space_info_update_bytes_pinned(space_info, num_bytes);
3871 space_info->bytes_used -= num_bytes;
3872 space_info->disk_used -= num_bytes * factor;
3874 btrfs_space_info_update_reclaimable(space_info, num_bytes);
3876 reclaim = should_reclaim_block_group(cache, num_bytes);
3882 bytenr + num_bytes - 1, EXTENT_DIRTY, NULL);
3919 * @num_bytes except for the compress path.
3920 * @num_bytes: The number of bytes in question
3928 u64 ram_bytes, u64 num_bytes, bool delalloc,
3943 size_class = btrfs_calc_block_group_size_class(num_bytes);
3949 cache->reserved += num_bytes;
3951 cache->delalloc_bytes += num_bytes;
3954 space_info->flags, num_bytes, 1);
3957 space_info->bytes_reserved += num_bytes;
3964 if (num_bytes < ram_bytes)
3980 * @num_bytes: The number of bytes in question.
3988 void btrfs_free_reserved_bytes(struct btrfs_block_group *cache, u64 num_bytes,
3997 cache->reserved -= num_bytes;
4000 cache->delalloc_bytes -= num_bytes;
4004 space_info->bytes_readonly += num_bytes;
4006 space_info->bytes_zone_unusable += num_bytes;
4008 space_info->bytes_reserved -= num_bytes;