xfs: factor duplicate code in xfs_alloc_ag_vextent_near into a helper
authorChristoph Hellwig <hch@infradead.org>
Fri, 10 Dec 2010 15:04:11 +0000 (15:04 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 16 Dec 2010 22:06:15 +0000 (16:06 -0600)
Add a new xfs_alloc_find_best_extent that does a forward/backward
search in the allocation btree.  That code previously was existed
two times in xfs_alloc_ag_vextent_near, once for each search
direction.

Based on an earlier patch from Dave Chinner.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>

No differences found