xfs: optimize AGFL refills
authorChristoph Hellwig <hch@infradead.org>
Sun, 24 Apr 2011 19:06:14 +0000 (19:06 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 28 Apr 2011 18:17:56 +0000 (13:17 -0500)
commita870acd9b2671de56514a430edfa7867823c31c9
treee288e41227c35c251a675e4901f0be35e0c26aa1
parent3eff1268994f72266b660782e87f215720c29639
xfs: optimize AGFL refills

While we need to make sure we do not reuse busy extents, there is no need
to force out busy extents when moving them between the AGFL and the
freespace btree as we still take care of that when doing the real allocation.

To avoid the log force when just moving extents from the different free
space tracking structures, move the busy search out of
xfs_alloc_get_freelist into the callers that need it, and move the busy
list insert from xfs_free_ag_extent which is used both by AGFL refills
and real allocation to xfs_free_extent, which is only used by the latter.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_alloc.c
fs/xfs/xfs_alloc_btree.c