+++ b/fs/gfs2/quota.c @@ -913,10 +913,6 @@ static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) goto out_dq; } - error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &i_gh); - if (error) - goto out_dq; - for (x = 0; x < num_qd; x++) { offset = qd2offset(qda[x]); if (gfs2_write_alloc_required(ip, offset, @@ -965,8 +961,6 @@ static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) gfs2_trans_end(sdp); out_ipres: gfs2_inplace_release(ip); -out_alloc: - gfs2_glock_dq_uninit(&i_gh); out_dq: while (qx--) gfs2_glock_dq_uninit(&ghs[qx]);