[PATCH 7/7] xfs: factor out code to find the longest free extent in the AG

Dave Chinner david at fromorbit.com
Sun Mar 15 02:58:24 CDT 2009


On Fri, Feb 20, 2009 at 03:52:14AM -0500, Christoph Hellwig wrote:
> From: Dave Chinner <dgc at sgi.com>
> 
> Signed-off-by: Dave Chinner <dgc at sgi.com>

....

>  /*
> + * Find the length of the longest extent in an AG.
> + */
> +xfs_extlen_t
> +xfs_alloc_min_freelist(
> +	struct xfs_mount	*mp,
> +	struct xfs_perag	*pag)

Looking at this again, I'd change the name of this function
to xfs_alloc_ag_longest_free_extent(), because that is what it
is actually returning....

Cheers,

Dave.
-- 
Dave Chinner
david at fromorbit.com




More information about the xfs mailing list