Lines Matching refs:thresh
4066 u64 thresh; in should_alloc_chunk() local
4084 thresh = btrfs_super_total_bytes(root->fs_info->super_copy); in should_alloc_chunk()
4085 thresh = max_t(u64, 64 * 1024 * 1024, in should_alloc_chunk()
4086 div_factor_fine(thresh, 1)); in should_alloc_chunk()
4088 if (num_bytes - num_allocated < thresh) in should_alloc_chunk()
4120 u64 thresh; in check_system_chunk() local
4128 thresh = get_system_chunk_thresh(root, type); in check_system_chunk()
4129 if (left < thresh && btrfs_test_opt(root, ENOSPC_DEBUG)) { in check_system_chunk()
4131 left, thresh, type); in check_system_chunk()
4135 if (left < thresh) { in check_system_chunk()
4576 u64 thresh = div_factor_fine(space_info->total_bytes, 98); in need_do_async_reclaim() local
4579 if (space_info->bytes_used >= thresh) in need_do_async_reclaim()
4582 return (used >= thresh && !btrfs_fs_closing(fs_info) && in need_do_async_reclaim()