commit | 489a150f6454e2cd93d9e0ee6d7c5a361844f62a | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@infradead.org> | Fri Dec 10 15:04:11 2010 +0000 |
committer | Alex Elder <aelder@sgi.com> | Thu Dec 16 16:06:15 2010 -0600 |
tree | 18deded59797caaec9f01ef5a3eb66a765bef29f | |
parent | 9f9baab38dacd11fe6095a1e59f3783a305f7020 [diff] |
xfs: factor duplicate code in xfs_alloc_ag_vextent_near into a helper 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>