xfs: clean up the xfs_alloc_compute_aligned calling convention
authorChristoph Hellwig <hch@infradead.org>
Fri, 4 Mar 2011 12:59:54 +0000 (12:59 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 9 Mar 2011 14:23:33 +0000 (08:23 -0600)
commit86fa8af69d8e90b7b40b8dab84d168527143ae20
treeed2b3b20570556a296c4be015d0e78a1fb527d66
parent9130090b5f04f7e7bc29b944e0b1ba494fff3f98
xfs: clean up the xfs_alloc_compute_aligned calling convention

Pass a xfs_alloc_arg structure to xfs_alloc_compute_aligned and derive
the alignment and minlen paramters from it.  This cleans up the existing
callers, and we'll need even more information from the xfs_alloc_arg
in subsequent patches.  Based on a patch from Dave Chinner.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_alloc.c