Lines Matching refs:num_qd
880 static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) in do_sync() argument
901 ghs = kmalloc_array(num_qd, sizeof(struct gfs2_holder), GFP_NOFS); in do_sync()
907 sort(qda, num_qd, sizeof(struct gfs2_quota_data *), sort_qd, NULL); in do_sync()
909 for (qx = 0; qx < num_qd; qx++) { in do_sync()
920 for (x = 0; x < num_qd; x++) { in do_sync()
936 blocks = num_qd * data_blocks + RES_DINODE + num_qd + 3; in do_sync()
951 for (x = 0; x < num_qd; x++) { in do_sync()
1294 unsigned int num_qd; in gfs2_quota_sync() local
1306 num_qd = 0; 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()
1312 if (++num_qd == max_qd) in gfs2_quota_sync()
1316 if (num_qd) { in gfs2_quota_sync()
1318 error = do_sync(num_qd, qda); in gfs2_quota_sync()
1320 for (x = 0; x < num_qd; x++) in gfs2_quota_sync()
1324 for (x = 0; x < num_qd; x++) in gfs2_quota_sync()
1327 } while (!error && num_qd == max_qd); in gfs2_quota_sync()