--- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -1321,6 +1321,9 @@ int gfs2_quota_sync(struct super_block *sb, int type) qda[x]->qd_sync_gen = sdp->sd_quota_sync_gen; + if (!sdp->sd_quota_bitmap) + break; + for (x = 0; x < num_qd; x++) qd_unlock(qda[x]); }