xfs: add a short cut to xfs_dialloc for the non-NULL agbp case
authorChristoph Hellwig <hch@infradead.org>
Wed, 4 Jul 2012 14:54:48 +0000 (10:54 -0400)
committerBen Myers <bpm@sgi.com>
Sun, 29 Jul 2012 21:03:23 +0000 (16:03 -0500)
commit4bb61069d2019dea2a7e4e0f4432101f03a9b820
tree678553dacf1696eab22649880a24119fcdce138a
parent08358906ed78f6ab4d3ff8e4fd1b87b9a4aea645
xfs: add a short cut to xfs_dialloc for the non-NULL agbp case

In this case we already have selected an AG and know it has free space
beause the buffer lock never got released.  Jump directly into xfs_dialloc_ag
and short cut the AG selection loop.

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>
fs/xfs/xfs_ialloc.c