Lines Matching refs:qda
880 static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) in do_sync() argument
882 struct gfs2_sbd *sdp = (*qda)->qd_gl->gl_name.ln_sbd; in do_sync()
907 sort(qda, num_qd, sizeof(struct gfs2_quota_data *), sort_qd, NULL); in do_sync()
910 error = gfs2_glock_nq_init(qda[qx]->qd_gl, LM_ST_EXCLUSIVE, in do_sync()
921 offset = qd2offset(qda[x]); in do_sync()
952 qd = qda[x]; in do_sync()
1129 struct gfs2_quota_data *qda[4]; in gfs2_quota_unlock() local
1163 qda[count++] = qd; in gfs2_quota_unlock()
1167 do_sync(count, qda); in gfs2_quota_unlock()
1169 qd_unlock(qda[x]); in gfs2_quota_unlock()
1292 struct gfs2_quota_data **qda; in gfs2_quota_sync() local
1298 qda = kcalloc(max_qd, sizeof(struct gfs2_quota_data *), GFP_KERNEL); in gfs2_quota_sync()
1299 if (!qda) in gfs2_quota_sync()
1309 error = qd_fish(sdp, qda + num_qd); in gfs2_quota_sync()
1310 if (error || !qda[num_qd]) in gfs2_quota_sync()
1318 error = do_sync(num_qd, qda); in gfs2_quota_sync()
1321 qda[x]->qd_sync_gen = in gfs2_quota_sync()
1325 qd_unlock(qda[x]); in gfs2_quota_sync()
1330 kfree(qda); in gfs2_quota_sync()