aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r--fs/gfs2/super.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index fe207a3e206e..f6ce5e4eaf7e 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -650,8 +650,7 @@ void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free,
650 l_sc->sc_total += total; 650 l_sc->sc_total += total;
651 l_sc->sc_free += free; 651 l_sc->sc_free += free;
652 l_sc->sc_dinodes += dinodes; 652 l_sc->sc_dinodes += dinodes;
653 gfs2_statfs_change_out(l_sc, l_bh->b_data + 653 gfs2_statfs_change_out(l_sc, l_bh->b_data + sizeof(struct gfs2_dinode));
654 sizeof(struct gfs2_dinode));
655 spin_unlock(&sdp->sd_statfs_spin); 654 spin_unlock(&sdp->sd_statfs_spin);
656 655
657 brelse(l_bh); 656 brelse(l_bh);
@@ -678,7 +677,7 @@ int gfs2_statfs_sync(struct gfs2_sbd *sdp)
678 677
679 spin_lock(&sdp->sd_statfs_spin); 678 spin_lock(&sdp->sd_statfs_spin);
680 gfs2_statfs_change_in(m_sc, m_bh->b_data + 679 gfs2_statfs_change_in(m_sc, m_bh->b_data +
681 sizeof(struct gfs2_dinode)); 680 sizeof(struct gfs2_dinode));
682 if (!l_sc->sc_total && !l_sc->sc_free && !l_sc->sc_dinodes) { 681 if (!l_sc->sc_total && !l_sc->sc_free && !l_sc->sc_dinodes) {
683 spin_unlock(&sdp->sd_statfs_spin); 682 spin_unlock(&sdp->sd_statfs_spin);
684 goto out_bh; 683 goto out_bh;