xfs: move firstblock and bmap freelist cursor into bmalloca structure
authorDave Chinner <dchinner@redhat.com>
Sun, 18 Sep 2011 20:40:57 +0000 (20:40 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Oct 2011 02:15:05 +0000 (21:15 -0500)
commit0937e0fd8be6f9c26844127d39d677bb752e8741
treef05f9c8a7cb6459726a9f207025b495853b913e8
parentbaf41a52b9c62f9a825371806129ed12e2c1e2d8
xfs: move firstblock and bmap freelist cursor into bmalloca structure

Rather than passing the firstblock and freelist structure around,
embed it into the bmalloca structure and remove it from the function
parameters.

This also enables the minleft parameter to be set only once in
xfs_bmapi_write(), and the freelist cursor directly queried in
xfs_bmapi_allocate to clear it when the lowspace algorithm is
activated.

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