Lines Matching refs:qda
868 static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) in do_sync() argument
870 struct gfs2_sbd *sdp = (*qda)->qd_gl->gl_name.ln_sbd; in do_sync()
893 sort(qda, num_qd, sizeof(struct gfs2_quota_data *), sort_qd, NULL); in do_sync()
896 error = gfs2_glock_nq_init(qda[qx]->qd_gl, LM_ST_EXCLUSIVE, in do_sync()
907 offset = qd2offset(qda[x]); in do_sync()
938 qd = qda[x]; in do_sync()
1114 struct gfs2_quota_data *qda[4]; in gfs2_quota_unlock() local
1148 qda[count++] = qd; in gfs2_quota_unlock()
1152 do_sync(count, qda); in gfs2_quota_unlock()
1154 qd_unlock(qda[x]); in gfs2_quota_unlock()
1278 struct gfs2_quota_data **qda; in gfs2_quota_sync() local
1284 qda = kcalloc(max_qd, sizeof(struct gfs2_quota_data *), GFP_KERNEL); in gfs2_quota_sync()
1285 if (!qda) in gfs2_quota_sync()
1295 error = qd_fish(sdp, qda + num_qd); in gfs2_quota_sync()
1296 if (error || !qda[num_qd]) in gfs2_quota_sync()
1304 error = do_sync(num_qd, qda); in gfs2_quota_sync()
1307 qda[x]->qd_sync_gen = in gfs2_quota_sync()
1311 qd_unlock(qda[x]); in gfs2_quota_sync()
1316 kfree(qda); in gfs2_quota_sync()