Lines Matching defs:used
41 * 3) btrfs_calc*_size. These are the worst case calculations we used based
371 space_info->bytes_used += block_group->used;
372 space_info->disk_used += block_group->used * factor;
443 * space is actually usable. For raid56, the space info used
458 * available space used by a data allocation, which could put us in a
517 u64 used;
523 used = btrfs_space_info_used(space_info, true);
525 return check_can_overcommit(space_info, used, bytes, flush);
564 u64 used = btrfs_space_info_used(space_info, true);
575 used_after = used + ticket->bytes;
579 can_overcommit(space_info, used, ticket->bytes, flush)) {
583 used = used_after;
643 "space_info total=%llu, used=%llu, pinned=%llu, reserved=%llu, may_use=%llu, readonly=%llu zone_unusable=%llu",
671 avail = cache->length - cache->used - cache->pinned -
674 "block group %llu has %llu bytes, %llu used %llu pinned %llu reserved %llu delalloc %llu super %llu zone_unusable (%llu bytes available) %s",
675 cache->start, cache->length, cache->used, cache->pinned,
938 u64 used;
945 used = btrfs_space_info_used(space_info, true);
953 if (space_info->total_bytes + avail < used)
954 to_reclaim += used - (space_info->total_bytes + avail);
965 u64 used;
983 used = space_info->bytes_may_use + space_info->bytes_pinned;
986 if (global_rsv_size >= used)
994 if (used - global_rsv_size <= SZ_128M)
1003 * if (used >= ((total_bytes + avail) / 2))
1007 * of the space_info used by bytes_used and we had 0 available we'd just
1027 used = space_info->bytes_used + space_info->bytes_reserved +
1029 if (used < space_info->total_bytes)
1030 thresh += space_info->total_bytes - used;
1033 used = space_info->bytes_pinned;
1061 used += btrfs_block_rsv_reserved(&fs_info->delayed_refs_rsv) +
1064 used += space_info->bytes_may_use - global_rsv_size;
1066 return (used >= thresh && !btrfs_fs_closing(fs_info) &&
1761 u64 used;
1785 used = btrfs_space_info_used(space_info, true);
1803 ((used + orig_bytes <= space_info->total_bytes) ||
1804 can_overcommit(space_info, used, orig_bytes, flush))) {
1815 used -= space_info->bytes_may_use;
1816 if (used + orig_bytes <= space_info->total_bytes) {
1991 block_group->used) * factor;
2062 u64 used = btrfs_space_info_used(space_info, false);
2063 u64 unused = alloc - used;
2119 if (bg->used < thresh && bg->reclaim_mark) {