Lines Matching refs:qblocks
160 uint qblocks, resblks, resrtextents; in xfs_iomap_write_direct() local
198 resrtextents = qblocks = resaligned; in xfs_iomap_write_direct()
204 resblks = qblocks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned); in xfs_iomap_write_direct()
245 error = xfs_trans_reserve_quota_nblks(tp, ip, qblocks, 0, quota_flag); in xfs_iomap_write_direct()
284 xfs_trans_unreserve_quota_nblks(tp, ip, (long)qblocks, 0, quota_flag); in xfs_iomap_write_direct()
316 xfs_fsblock_t *qblocks, in xfs_quota_calc_throttle() argument
326 *qblocks = 0; in xfs_quota_calc_throttle()
344 if ((freesp >> shift) < (*qblocks >> *qshift)) { in xfs_quota_calc_throttle()
345 *qblocks = freesp; in xfs_quota_calc_throttle()
381 xfs_fsblock_t qblocks; in xfs_iomap_prealloc_size() local
424 qblocks = alloc_blocks; in xfs_iomap_prealloc_size()
454 xfs_quota_calc_throttle(ip, XFS_DQ_USER, &qblocks, &qshift, in xfs_iomap_prealloc_size()
457 xfs_quota_calc_throttle(ip, XFS_DQ_GROUP, &qblocks, &qshift, in xfs_iomap_prealloc_size()
460 xfs_quota_calc_throttle(ip, XFS_DQ_PROJ, &qblocks, &qshift, in xfs_iomap_prealloc_size()
470 alloc_blocks = min(alloc_blocks, qblocks); in xfs_iomap_prealloc_size()