Lines Matching refs:num_qd
908 static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) in do_sync() argument
925 ghs = kmalloc_array(num_qd, sizeof(struct gfs2_holder), GFP_NOFS); in do_sync()
929 sort(qda, num_qd, sizeof(struct gfs2_quota_data *), sort_qd, NULL); in do_sync()
931 for (qx = 0; qx < num_qd; qx++) { in do_sync()
942 for (x = 0; x < num_qd; x++) { in do_sync()
958 blocks = num_qd * data_blocks + RES_DINODE + num_qd + 3; in do_sync()
973 for (x = 0; x < num_qd; x++) { in do_sync()
999 for (x = 0; x < num_qd; x++) in do_sync()
1331 unsigned int num_qd; in gfs2_quota_sync() local
1346 num_qd = 0; in gfs2_quota_sync()
1349 error = qd_fish(sdp, qda + num_qd); in gfs2_quota_sync()
1350 if (error || !qda[num_qd]) in gfs2_quota_sync()
1352 if (++num_qd == max_qd) in gfs2_quota_sync()
1356 if (num_qd) { in gfs2_quota_sync()
1358 error = do_sync(num_qd, qda); in gfs2_quota_sync()
1360 for (x = 0; x < num_qd; x++) in gfs2_quota_sync()
1363 } while (!error && num_qd == max_qd); in gfs2_quota_sync()