Lines Matching refs:dquot
29 static void print_dquot(const char *desc, struct dquot *dq) in print_dquot()
48 struct dquot *dq; in write_dquots()
205 static struct dquot *get_dq(dict_t *dict, __u32 key) in get_dq()
207 struct dquot *dq; in get_dq()
214 if (quota_get_mem(sizeof(struct dquot), &dq)) { in get_dq()
218 memset(dq, 0, sizeof(struct dquot)); in get_dq()
230 struct dquot *dq; in quota_data_add()
252 struct dquot *dq; in quota_data_sub()
273 struct dquot *dq; in quota_data_inodes()
318 static int scan_dquots_callback(struct dquot *dquot, void *cb_data) in scan_dquots_callback() argument
322 struct dquot *dq; in scan_dquots_callback()
324 dq = get_dq(quota_dict, dquot->dq_id); in scan_dquots_callback()
325 dq->dq_id = dquot->dq_id; in scan_dquots_callback()
329 print_dquot("dsk", dquot); in scan_dquots_callback()
331 if (dq->dq_dqb.dqb_curspace != dquot->dq_dqb.dqb_curspace || in scan_dquots_callback()
332 dq->dq_dqb.dqb_curinodes != dquot->dq_dqb.dqb_curinodes) { in scan_dquots_callback()
338 (long long) dquot->dq_dqb.dqb_curspace, in scan_dquots_callback()
339 (long long) dquot->dq_dqb.dqb_curinodes); in scan_dquots_callback()
343 dq->dq_dqb.dqb_ihardlimit = dquot->dq_dqb.dqb_ihardlimit; in scan_dquots_callback()
344 dq->dq_dqb.dqb_isoftlimit = dquot->dq_dqb.dqb_isoftlimit; in scan_dquots_callback()
345 dq->dq_dqb.dqb_bhardlimit = dquot->dq_dqb.dqb_bhardlimit; in scan_dquots_callback()
346 dq->dq_dqb.dqb_bsoftlimit = dquot->dq_dqb.dqb_bsoftlimit; in scan_dquots_callback()
350 dq->dq_dqb.dqb_curspace = dquot->dq_dqb.dqb_curspace; in scan_dquots_callback()
351 dq->dq_dqb.dqb_curinodes = dquot->dq_dqb.dqb_curinodes; in scan_dquots_callback()
370 struct dquot *dq; in quota_compare_and_update()