Lines Matching refs:thresh
4226 u64 thresh; in should_alloc_chunk() local
4244 thresh = btrfs_super_total_bytes(root->fs_info->super_copy); in should_alloc_chunk()
4245 thresh = max_t(u64, 64 * 1024 * 1024, in should_alloc_chunk()
4246 div_factor_fine(thresh, 1)); in should_alloc_chunk()
4248 if (num_bytes - num_allocated < thresh) in should_alloc_chunk()
4285 u64 thresh; in check_system_chunk() local
4305 thresh = btrfs_calc_trunc_metadata_size(root, num_devs) + in check_system_chunk()
4308 if (left < thresh && btrfs_test_opt(root, ENOSPC_DEBUG)) { in check_system_chunk()
4310 left, thresh, type); in check_system_chunk()
4314 if (left < thresh) { in check_system_chunk()
4330 thresh, BTRFS_RESERVE_NO_FLUSH); in check_system_chunk()
4332 trans->chunk_bytes_reserved += thresh; in check_system_chunk()
4788 u64 thresh = div_factor_fine(space_info->total_bytes, 98); in need_do_async_reclaim() local
4791 if (space_info->bytes_used >= thresh) in need_do_async_reclaim()
4794 return (used >= thresh && !btrfs_fs_closing(fs_info) && in need_do_async_reclaim()