Lines Matching refs:freesp
325 int64_t freesp; in xfs_quota_calc_throttle() local
335 freesp = dq->q_prealloc_hi_wmark - dq->q_blk.reserved; in xfs_quota_calc_throttle()
336 if (freesp < dq->q_low_space[XFS_QLOWSP_5_PCNT]) { in xfs_quota_calc_throttle()
338 if (freesp < dq->q_low_space[XFS_QLOWSP_3_PCNT]) in xfs_quota_calc_throttle()
340 if (freesp < dq->q_low_space[XFS_QLOWSP_1_PCNT]) in xfs_quota_calc_throttle()
344 if (freesp < *qfreesp) in xfs_quota_calc_throttle()
345 *qfreesp = freesp; in xfs_quota_calc_throttle()
348 if ((freesp >> shift) < (*qblocks >> *qshift)) { in xfs_quota_calc_throttle()
349 *qblocks = freesp; in xfs_quota_calc_throttle()
373 int64_t freesp; in xfs_iomap_prealloc_size() local
436 freesp = percpu_counter_read_positive(&mp->m_fdblocks); in xfs_iomap_prealloc_size()
437 if (freesp < mp->m_low_space[XFS_LOWSP_5_PCNT]) { in xfs_iomap_prealloc_size()
439 if (freesp < mp->m_low_space[XFS_LOWSP_4_PCNT]) in xfs_iomap_prealloc_size()
441 if (freesp < mp->m_low_space[XFS_LOWSP_3_PCNT]) in xfs_iomap_prealloc_size()
443 if (freesp < mp->m_low_space[XFS_LOWSP_2_PCNT]) in xfs_iomap_prealloc_size()
445 if (freesp < mp->m_low_space[XFS_LOWSP_1_PCNT]) in xfs_iomap_prealloc_size()
455 &freesp); in xfs_iomap_prealloc_size()
458 &freesp); in xfs_iomap_prealloc_size()
461 &freesp); in xfs_iomap_prealloc_size()
490 while (alloc_blocks && alloc_blocks >= freesp) in xfs_iomap_prealloc_size()