]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/xfs/libxfs/xfs_sb.c
xfs: use generic percpu counters for inode counter
[karo-tx-linux.git] / fs / xfs / libxfs / xfs_sb.c
index b0a5fe95a3e22d0c56f2ba482814da2a68b9a318..017cb2fc53eb2a33687efd2574ff153ae5076ee1 100644 (file)
@@ -771,6 +771,8 @@ xfs_log_sb(
        struct xfs_mount        *mp = tp->t_mountp;
        struct xfs_buf          *bp = xfs_trans_getsb(tp, mp, 0);
 
+       mp->m_sb.sb_icount = percpu_counter_sum(&mp->m_icount);
+
        xfs_sb_to_disk(XFS_BUF_TO_SBP(bp), &mp->m_sb);
        xfs_trans_buf_set_type(tp, bp, XFS_BLFT_SB_BUF);
        xfs_trans_log_buf(tp, bp, 0, sizeof(struct xfs_dsb));