Lines Matching defs:used

37  *   3) btrfs_calc*_size.  These are the worst case calculations we used based
311 found->bytes_used += block_group->used;
312 found->disk_used += block_group->used * factor;
362 * space is actually usable. For raid56, the space info used
386 * available space used by a data allocation, which could put us in a
416 u64 used;
422 used = btrfs_space_info_used(space_info, true);
425 if (used + bytes < space_info->total_bytes + avail)
456 u64 used = btrfs_space_info_used(space_info, true);
461 if ((used + ticket->bytes <= space_info->total_bytes) ||
529 "space_info total=%llu, used=%llu, pinned=%llu, reserved=%llu, may_use=%llu, readonly=%llu zone_unusable=%llu",
557 avail = cache->length - cache->used - cache->pinned -
561 "block group %llu has %llu bytes, %llu used %llu pinned %llu reserved %llu delalloc %llu super %llu zone_unusable (%llu bytes available) %s",
562 cache->start, cache->length, cache->used, cache->pinned,
833 u64 used;
841 used = btrfs_space_info_used(space_info, true);
849 if (space_info->total_bytes + avail < used)
850 to_reclaim += used - (space_info->total_bytes + avail);
861 u64 used;
872 used = space_info->bytes_may_use + space_info->bytes_pinned;
875 if (global_rsv_size >= used)
883 if (used - global_rsv_size <= SZ_128M)
899 * if (used >= ((total_bytes + avail) / 2))
903 * of the space_info used by bytes_used and we had 0 available we'd just
924 used = space_info->bytes_used + space_info->bytes_reserved +
926 if (used < space_info->total_bytes)
927 thresh += space_info->total_bytes - used;
930 used = space_info->bytes_pinned;
958 used += btrfs_block_rsv_reserved(&fs_info->delayed_refs_rsv) +
961 used += space_info->bytes_may_use - global_rsv_size;
963 return (used >= thresh && !btrfs_fs_closing(fs_info) &&
1633 u64 used;
1657 used = btrfs_space_info_used(space_info, true);
1675 ((used + orig_bytes <= space_info->total_bytes) ||
1688 used = btrfs_space_info_used(space_info, false);
1689 if (used + orig_bytes <= space_info->total_bytes) {
1863 block_group->used) * factor;