Lines Matching refs:alloc_blocks

300 	xfs_fsblock_t		alloc_blocks)  in xfs_quota_need_throttle()  argument
312 if (dq->q_blk.reserved + alloc_blocks < dq->q_prealloc_lo_wmark) in xfs_quota_need_throttle()
377 xfs_fsblock_t alloc_blocks = 0; in xfs_iomap_prealloc_size() local
423 alloc_blocks = plen * 2; in xfs_iomap_prealloc_size()
424 if (alloc_blocks > XFS_MAX_BMBT_EXTLEN) in xfs_iomap_prealloc_size()
425 alloc_blocks = XFS_B_TO_FSB(mp, offset); in xfs_iomap_prealloc_size()
426 qblocks = alloc_blocks; in xfs_iomap_prealloc_size()
435 alloc_blocks = XFS_FILEOFF_MIN(roundup_pow_of_two(XFS_MAX_BMBT_EXTLEN), in xfs_iomap_prealloc_size()
436 alloc_blocks); in xfs_iomap_prealloc_size()
455 if (xfs_quota_need_throttle(ip, XFS_DQTYPE_USER, alloc_blocks)) in xfs_iomap_prealloc_size()
458 if (xfs_quota_need_throttle(ip, XFS_DQTYPE_GROUP, alloc_blocks)) in xfs_iomap_prealloc_size()
461 if (xfs_quota_need_throttle(ip, XFS_DQTYPE_PROJ, alloc_blocks)) in xfs_iomap_prealloc_size()
472 alloc_blocks = min(alloc_blocks, qblocks); in xfs_iomap_prealloc_size()
476 alloc_blocks >>= shift; in xfs_iomap_prealloc_size()
481 if (alloc_blocks) in xfs_iomap_prealloc_size()
482 alloc_blocks = rounddown_pow_of_two(alloc_blocks); in xfs_iomap_prealloc_size()
483 if (alloc_blocks > XFS_MAX_BMBT_EXTLEN) in xfs_iomap_prealloc_size()
484 alloc_blocks = XFS_MAX_BMBT_EXTLEN; in xfs_iomap_prealloc_size()
492 while (alloc_blocks && alloc_blocks >= freesp) in xfs_iomap_prealloc_size()
493 alloc_blocks >>= 4; in xfs_iomap_prealloc_size()
494 if (alloc_blocks < mp->m_allocsize_blocks) in xfs_iomap_prealloc_size()
495 alloc_blocks = mp->m_allocsize_blocks; in xfs_iomap_prealloc_size()
496 trace_xfs_iomap_prealloc_size(ip, alloc_blocks, shift, in xfs_iomap_prealloc_size()
498 return alloc_blocks; in xfs_iomap_prealloc_size()