xfs: do not read the AGI buffer in xfs_dialloc until nessecary
authorChristoph Hellwig <hch@infradead.org>
Wed, 4 Jul 2012 14:54:50 +0000 (10:54 -0400)
committerBen Myers <bpm@sgi.com>
Sun, 29 Jul 2012 21:10:54 +0000 (16:10 -0500)
Refactor the AG selection loop in xfs_dialloc to operate on the in-memory
perag data as much as possible.  We only read the AGI buffer once we have
selected an AG to allocate inodes now instead of for every AG considered.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>

No differences found