commit | 4254b0bbb1c0826b7443ffa593576696bc591aa2 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Mon Aug 31 20:57:14 2009 -0300 |
committer | Felix Blyakher <felixb@sgi.com> | Tue Sep 01 12:45:29 2009 -0500 |
tree | bf938f43d83c31a6aa87825e5fe0c2c2388d52d2 | |
parent | 0b48db80ba689edfd96ed06c3124d6cf1146de3f [diff] |
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 <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Signed-off-by: Felix Blyakher <felixb@sgi.com>