Lines Matching refs:qda
888 static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) in do_sync() argument
890 struct gfs2_sbd *sdp = (*qda)->qd_sbd; in do_sync()
909 sort(qda, num_qd, sizeof(struct gfs2_quota_data *), sort_qd, NULL); in do_sync()
912 error = gfs2_glock_nq_init(qda[qx]->qd_gl, LM_ST_EXCLUSIVE, in do_sync()
923 offset = qd2offset(qda[x]); in do_sync()
954 qd = qda[x]; in do_sync()
980 qda[x]->qd_sync_gen = sdp->sd_quota_sync_gen; in do_sync()
1133 struct gfs2_quota_data *qda[2 * GFS2_MAXQUOTAS]; in gfs2_quota_unlock() local
1166 qda[count++] = qd; in gfs2_quota_unlock()
1170 do_sync(count, qda); in gfs2_quota_unlock()
1172 qd_unlock(qda[x]); in gfs2_quota_unlock()
1315 struct gfs2_quota_data **qda; in gfs2_quota_sync() local
1324 qda = kcalloc(max_qd, sizeof(struct gfs2_quota_data *), GFP_KERNEL); in gfs2_quota_sync()
1325 if (!qda) in gfs2_quota_sync()
1335 error = qd_fish(sdp, qda + num_qd); in gfs2_quota_sync()
1336 if (error || !qda[num_qd]) in gfs2_quota_sync()
1344 error = do_sync(num_qd, qda); in gfs2_quota_sync()
1347 qd_unlock(qda[x]); in gfs2_quota_sync()
1352 kfree(qda); in gfs2_quota_sync()