From: Christoph Hellwig Date: Fri, 10 Dec 2010 15:04:11 +0000 (+0000) Subject: xfs: factor duplicate code in xfs_alloc_ag_vextent_near into a helper X-Git-Tag: v2.6.38-rc1~44^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=489a150f6454e2cd93d9e0ee6d7c5a361844f62a;p=pandora-kernel.git 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 Signed-off-by: Alex Elder --- Reading git-diff-tree failed