Lines Matching refs:num_qd
872 static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) in do_sync() argument
893 ghs = kmalloc_array(num_qd, sizeof(struct gfs2_holder), GFP_NOFS); in do_sync()
899 sort(qda, num_qd, sizeof(struct gfs2_quota_data *), sort_qd, NULL); in do_sync()
901 for (qx = 0; qx < num_qd; qx++) { in do_sync()
912 for (x = 0; x < num_qd; x++) { in do_sync()
928 blocks = num_qd * data_blocks + RES_DINODE + num_qd + 3; in do_sync()
943 for (x = 0; x < num_qd; x++) { in do_sync()
1286 unsigned int num_qd; in gfs2_quota_sync() local
1298 num_qd = 0; in gfs2_quota_sync()
1301 error = qd_fish(sdp, qda + num_qd); in gfs2_quota_sync()
1302 if (error || !qda[num_qd]) in gfs2_quota_sync()
1304 if (++num_qd == max_qd) in gfs2_quota_sync()
1308 if (num_qd) { in gfs2_quota_sync()
1310 error = do_sync(num_qd, qda); in gfs2_quota_sync()
1312 for (x = 0; x < num_qd; x++) in gfs2_quota_sync()
1316 for (x = 0; x < num_qd; x++) in gfs2_quota_sync()
1319 } while (!error && num_qd == max_qd); in gfs2_quota_sync()