xfs: factor agf counter updates into a helper
authorChristoph Hellwig <hch@infradead.org>
Fri, 4 Mar 2011 12:59:55 +0000 (12:59 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 9 Mar 2011 14:23:47 +0000 (08:23 -0600)
commitecb6928fcf969b302929f109e175981df1dba697
tree7cb8ecaa05615c3a1f445088e74ea89e896dfabe
parent86fa8af69d8e90b7b40b8dab84d168527143ae20
xfs: factor agf counter updates into a helper

Updating the AGF and transactions counters is duplicated between allocating
and freeing extents.  Factor the code into a common helper.

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