From: Christoph Hellwig Date: Mon, 31 Aug 2009 23:57:14 +0000 (-0300) Subject: xfs: untangle xfs_dialloc X-Git-Tag: v2.6.32-rc1~661^2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4254b0bbb1c0826b7443ffa593576696bc591aa2;p=pandora-kernel.git xfs: untangle xfs_dialloc Clarify the control flow in xfs_dialloc. Factor out a helper to go to the next node from the current one and improve the control flow by expanding composite if statements and using gotos. The xfs_ialloc_next_rec helper is borrowed from Dave Chinners dynamic allocation policy patches. Signed-off-by: Christoph Hellwig Reviewed-by: Alex Elder Signed-off-by: Felix Blyakher --- Reading git-diff-tree failed