Lines Matching refs:used

38  *   3) btrfs_calc*_size.  These are the worst case calculations we used based
312 found->bytes_used += block_group->used;
313 found->disk_used += block_group->used * factor;
361 * space is actually usable. For raid56, the space info used
385 u64 used;
391 used = btrfs_space_info_used(space_info, true);
394 if (used + bytes < space_info->total_bytes + avail)
425 u64 used = btrfs_space_info_used(space_info, true);
430 if ((used + ticket->bytes <= space_info->total_bytes) ||
498 "space_info total=%llu, used=%llu, pinned=%llu, reserved=%llu, may_use=%llu, readonly=%llu zone_unusable=%llu",
526 avail = cache->length - cache->used - cache->pinned -
530 "block group %llu has %llu bytes, %llu used %llu pinned %llu reserved %llu delalloc %llu super %llu zone_unusable (%llu bytes available) %s",
531 cache->start, cache->length, cache->used, cache->pinned,
815 u64 used;
823 used = btrfs_space_info_used(space_info, true);
831 if (space_info->total_bytes + avail < used)
832 to_reclaim += used - (space_info->total_bytes + avail);
843 u64 used;
854 used = space_info->bytes_may_use + space_info->bytes_pinned;
857 if (global_rsv_size >= used)
865 if (used - global_rsv_size <= SZ_128M)
881 * if (used >= ((total_bytes + avail) / 2))
885 * of the space_info used by bytes_used and we had 0 available we'd just
906 used = space_info->bytes_used + space_info->bytes_reserved +
908 if (used < space_info->total_bytes)
909 thresh += space_info->total_bytes - used;
912 used = space_info->bytes_pinned;
940 used += btrfs_block_rsv_reserved(&fs_info->delayed_refs_rsv) +
943 used += space_info->bytes_may_use - global_rsv_size;
945 return (used >= thresh && !btrfs_fs_closing(fs_info) &&
1614 u64 used;
1638 used = btrfs_space_info_used(space_info, true);
1656 ((used + orig_bytes <= space_info->total_bytes) ||
1669 used = btrfs_space_info_used(space_info, false);
1670 if (used + orig_bytes <= space_info->total_bytes) {
1846 block_group->used) * factor;