Lines Matching refs:qda
832 static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) in do_sync() argument
834 struct gfs2_sbd *sdp = (*qda)->qd_gl->gl_name.ln_sbd; in do_sync()
857 sort(qda, num_qd, sizeof(struct gfs2_quota_data *), sort_qd, NULL); in do_sync()
860 error = gfs2_glock_nq_init(qda[qx]->qd_gl, LM_ST_EXCLUSIVE, in do_sync()
871 offset = qd2offset(qda[x]); in do_sync()
902 qd = qda[x]; in do_sync()
1077 struct gfs2_quota_data *qda[4]; in gfs2_quota_unlock() local
1111 qda[count++] = qd; in gfs2_quota_unlock()
1115 do_sync(count, qda); in gfs2_quota_unlock()
1117 qd_unlock(qda[x]); in gfs2_quota_unlock()
1239 struct gfs2_quota_data **qda; in gfs2_quota_sync() local
1245 qda = kcalloc(max_qd, sizeof(struct gfs2_quota_data *), GFP_KERNEL); in gfs2_quota_sync()
1246 if (!qda) in gfs2_quota_sync()
1256 error = qd_fish(sdp, qda + num_qd); in gfs2_quota_sync()
1257 if (error || !qda[num_qd]) in gfs2_quota_sync()
1265 error = do_sync(num_qd, qda); in gfs2_quota_sync()
1268 qda[x]->qd_sync_gen = in gfs2_quota_sync()
1272 qd_unlock(qda[x]); in gfs2_quota_sync()
1277 kfree(qda); in gfs2_quota_sync()