xfs: do not use xfs_mod_incore_sb_batch for per-cpu counters
authorChristoph Hellwig <hch@infradead.org>
Thu, 30 Sep 2010 02:25:56 +0000 (02:25 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 18 Oct 2010 20:08:00 +0000 (15:08 -0500)
commit1b0407125f9a5be63e861eb27c8af9e32f20619c
tree206f43a7131ad11b8c603247254a8eb9aa2fc17e
parent96540c78583a417113df4d027e6b68a595ab9a09
xfs: do not use xfs_mod_incore_sb_batch for per-cpu counters

Update the per-cpu counters manually in xfs_trans_unreserve_and_mod_sb
and remove support for per-cpu counters from xfs_mod_incore_sb_batch
to simplify it.  And added benefit is that we don't have to take
m_sb_lock for transactions that only modify per-cpu counters.

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