Lines Matching refs:thresh
4357 u64 thresh; in should_alloc_chunk() local
4375 thresh = btrfs_super_total_bytes(root->fs_info->super_copy); in should_alloc_chunk()
4376 thresh = max_t(u64, SZ_64M, div_factor_fine(thresh, 1)); in should_alloc_chunk()
4378 if (num_bytes - num_allocated < thresh) in should_alloc_chunk()
4415 u64 thresh; in check_system_chunk() local
4435 thresh = btrfs_calc_trunc_metadata_size(root, num_devs) + in check_system_chunk()
4438 if (left < thresh && btrfs_test_opt(root->fs_info, ENOSPC_DEBUG)) { in check_system_chunk()
4440 left, thresh, type); in check_system_chunk()
4444 if (left < thresh) { in check_system_chunk()
4460 thresh, BTRFS_RESERVE_NO_FLUSH); in check_system_chunk()
4462 trans->chunk_bytes_reserved += thresh; in check_system_chunk()
4938 u64 thresh = div_factor_fine(space_info->total_bytes, 98); in need_do_async_reclaim() local
4941 if ((space_info->bytes_used + space_info->bytes_reserved) >= thresh) in need_do_async_reclaim()
4947 return (used >= thresh && !btrfs_fs_closing(root->fs_info) && in need_do_async_reclaim()