summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ialloc.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2009-09-01 01:57:14 +0200
committerFelix Blyakher <felixb@sgi.com>2009-09-01 19:45:29 +0200
commit4254b0bbb1c0826b7443ffa593576696bc591aa2 (patch)
treebf938f43d83c31a6aa87825e5fe0c2c2388d52d2 /fs/xfs/xfs_ialloc.h
parentxfs: factor out debug checks from xfs_dialloc and xfs_difree (diff)
downloadlinux-4254b0bbb1c0826b7443ffa593576696bc591aa2.tar.xz
linux-4254b0bbb1c0826b7443ffa593576696bc591aa2.zip
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>
Diffstat (limited to 'fs/xfs/xfs_ialloc.h')
0 files changed, 0 insertions, 0 deletions