/* xfs_bmap_alloc is called by xfs_bmapi to allocate an extent for a file. It figures out where to ask the underlying allocator to put the new extent.  */
STATIC int xfs_bmap_alloc(xfs_bmalloca_t *ap)
/* xfs_bmap_alloc is called by xfs_bmapi to allocate an extent for a file. It figures out where to ask the underlying allocator to put the new extent.  */
STATIC int xfs_bmap_alloc(xfs_bmalloca_t *ap)
{
	if (XFS_IS_REALTIME_INODE(ap->ip) && ap->userdata)
		return xfs_bmap_rtalloc(ap);
	return xfs_bmap_btalloc(ap);
}