Merge tag 'gfs2-4.11.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2...
[platform/kernel/linux-rpi.git] / fs / gfs2 / ops_fstype.c
index a34308d..5870479 100644 (file)
@@ -683,6 +683,7 @@ static int init_journal(struct gfs2_sbd *sdp, int undo)
                goto fail_jindex;
        }
 
+       atomic_set(&sdp->sd_log_blks_needed, 0);
        if (sdp->sd_args.ar_spectator) {
                sdp->sd_jdesc = gfs2_jdesc_find(sdp, 0);
                atomic_set(&sdp->sd_log_blks_free, sdp->sd_jdesc->jd_blocks);