Lines Matching refs:qda
791 static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) in do_sync() argument
793 struct gfs2_sbd *sdp = (*qda)->qd_gl->gl_sbd; in do_sync()
816 sort(qda, num_qd, sizeof(struct gfs2_quota_data *), sort_qd, NULL); in do_sync()
819 error = gfs2_glock_nq_init(qda[qx]->qd_gl, LM_ST_EXCLUSIVE, in do_sync()
830 offset = qd2offset(qda[x]); in do_sync()
861 qd = qda[x]; in do_sync()
1036 struct gfs2_quota_data *qda[4]; in gfs2_quota_unlock() local
1070 qda[count++] = qd; in gfs2_quota_unlock()
1074 do_sync(count, qda); in gfs2_quota_unlock()
1076 qd_unlock(qda[x]); in gfs2_quota_unlock()
1195 struct gfs2_quota_data **qda; in gfs2_quota_sync() local
1201 qda = kcalloc(max_qd, sizeof(struct gfs2_quota_data *), GFP_KERNEL); in gfs2_quota_sync()
1202 if (!qda) in gfs2_quota_sync()
1212 error = qd_fish(sdp, qda + num_qd); in gfs2_quota_sync()
1213 if (error || !qda[num_qd]) in gfs2_quota_sync()
1221 error = do_sync(num_qd, qda); in gfs2_quota_sync()
1224 qda[x]->qd_sync_gen = in gfs2_quota_sync()
1228 qd_unlock(qda[x]); in gfs2_quota_sync()
1233 kfree(qda); in gfs2_quota_sync()