commit | 3070451eea1ed8e3bde0573183c7d8ac25fd5e97 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@infradead.org> | Thu Jun 24 11:42:19 2010 +1000 |
committer | Alex Elder <aelder@sgi.com> | Mon Jul 26 13:16:42 2010 -0500 |
tree | 667aee111d96e885021e261647fe4ec3cdb1f08a | |
parent | 7a36c8a98a7dd05756bb147be2ac350325ff5830 [diff] |
xfs: reduce stack usage in xfs_iomap 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>