Lines Matching refs:freesp
364 int64_t freesp; in xfs_quota_calc_throttle() local
374 freesp = dq->q_prealloc_hi_wmark - dq->q_blk.reserved; in xfs_quota_calc_throttle()
375 if (freesp < dq->q_low_space[XFS_QLOWSP_5_PCNT]) { in xfs_quota_calc_throttle()
377 if (freesp < dq->q_low_space[XFS_QLOWSP_3_PCNT]) in xfs_quota_calc_throttle()
379 if (freesp < dq->q_low_space[XFS_QLOWSP_1_PCNT]) in xfs_quota_calc_throttle()
383 if (freesp < *qfreesp) in xfs_quota_calc_throttle()
384 *qfreesp = freesp; in xfs_quota_calc_throttle()
387 if ((freesp >> shift) < (*qblocks >> *qshift)) { in xfs_quota_calc_throttle()
388 *qblocks = freesp; in xfs_quota_calc_throttle()
412 int64_t freesp; in xfs_iomap_prealloc_size() local
475 freesp = percpu_counter_read_positive(&mp->m_fdblocks); in xfs_iomap_prealloc_size()
476 if (freesp < mp->m_low_space[XFS_LOWSP_5_PCNT]) { in xfs_iomap_prealloc_size()
478 if (freesp < mp->m_low_space[XFS_LOWSP_4_PCNT]) in xfs_iomap_prealloc_size()
480 if (freesp < mp->m_low_space[XFS_LOWSP_3_PCNT]) in xfs_iomap_prealloc_size()
482 if (freesp < mp->m_low_space[XFS_LOWSP_2_PCNT]) in xfs_iomap_prealloc_size()
484 if (freesp < mp->m_low_space[XFS_LOWSP_1_PCNT]) in xfs_iomap_prealloc_size()
494 &freesp); in xfs_iomap_prealloc_size()
497 &freesp); in xfs_iomap_prealloc_size()
500 &freesp); in xfs_iomap_prealloc_size()
529 while (alloc_blocks && alloc_blocks >= freesp) in xfs_iomap_prealloc_size()