summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs
diff options
context:
space:
mode:
authorDave Chinner2015-02-23 11:22:31 +0100
committerDave Chinner2015-02-23 11:22:31 +0100
commit5681ca40064fdb3efe477a604d690ab0425708b3 (patch)
tree22bfb1ebea1bef65094a8d9e7fb4526996028d54 /fs/xfs/libxfs
parentxfs: use generic percpu counters for free block counter (diff)
downloadkernel-qcow2-linux-5681ca40064fdb3efe477a604d690ab0425708b3.tar.gz
kernel-qcow2-linux-5681ca40064fdb3efe477a604d690ab0425708b3.tar.xz
kernel-qcow2-linux-5681ca40064fdb3efe477a604d690ab0425708b3.zip
xfs: Remove icsb infrastructure
Now that the in-core superblock infrastructure has been replaced with generic per-cpu counters, we don't need it anymore. Nuke it from orbit so we are sure that it won't haunt us again... Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r--fs/xfs/libxfs/xfs_sb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/libxfs/xfs_sb.c b/fs/xfs/libxfs/xfs_sb.c
index 31a3e972f86f..a270095ec3c0 100644
--- a/fs/xfs/libxfs/xfs_sb.c
+++ b/fs/xfs/libxfs/xfs_sb.c
@@ -743,17 +743,15 @@ xfs_initialize_perag_data(
btree += pag->pagf_btreeblks;
xfs_perag_put(pag);
}
- /*
- * Overwrite incore superblock counters with just-read data
- */
+
+ /* Overwrite incore superblock counters with just-read data */
spin_lock(&mp->m_sb_lock);
sbp->sb_ifree = ifree;
sbp->sb_icount = ialloc;
sbp->sb_fdblocks = bfree + bfreelst + btree;
spin_unlock(&mp->m_sb_lock);
- /* Fixup the per-cpu counters as well. */
- xfs_icsb_reinit_counters(mp);
+ xfs_reinit_percpu_counters(mp);
return 0;
}