xfs: reduce stack usage in xfs_iomap
authorChristoph Hellwig <hch@infradead.org>
Thu, 24 Jun 2010 01:42:19 +0000 (11:42 +1000)
committerAlex Elder <aelder@sgi.com>
Mon, 26 Jul 2010 18:16:42 +0000 (13:16 -0500)
xfs_iomap passes a xfs_bmbt_irec pointer to xfs_iomap_write_direct and
xfs_iomap_write_allocate to give them the results of our read-only
xfs_bmapi query.  Instead of allocating a new xfs_bmbt_irec on stack
for the next call to xfs_bmapi re use the one we got passed as it's not
used after this point.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>

No differences found