• Home
  • Raw
  • Download

Lines Matching refs:dq

29 static void print_dquot(const char *desc, struct dquot *dq)  in print_dquot()  argument
34 dq->dq_id, (long long) dq->dq_dqb.dqb_curspace, in print_dquot()
35 (long long) dq->dq_dqb.dqb_bsoftlimit, in print_dquot()
36 (long long) dq->dq_dqb.dqb_bhardlimit, in print_dquot()
37 (long long) dq->dq_dqb.dqb_curinodes, in print_dquot()
38 (long long) dq->dq_dqb.dqb_isoftlimit, in print_dquot()
39 (long long) dq->dq_dqb.dqb_ihardlimit); in print_dquot()
48 struct dquot *dq; in write_dquots() local
52 dq = dnode_get(n); in write_dquots()
53 if (dq) { in write_dquots()
54 print_dquot("write", dq); in write_dquots()
55 dq->dq_h = qh; in write_dquots()
56 update_grace_times(dq); in write_dquots()
57 if (qh->qh_ops->commit_dquot(dq)) { in write_dquots()
207 struct dquot *dq; in get_dq() local
212 dq = dnode_get(n); 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()
219 dict_alloc_insert(dict, UINT_TO_VOIDPTR(key), dq); in get_dq()
220 dq->dq_id = key; in get_dq()
222 return dq; in get_dq()
230 struct dquot *dq; in quota_data_add() local
240 dq = get_dq(dict, get_qid(inode, qtype)); in quota_data_add()
241 if (dq) in quota_data_add()
242 dq->dq_dqb.dqb_curspace += space; in quota_data_add()
252 struct dquot *dq; in quota_data_sub() local
262 dq = get_dq(dict, get_qid(inode, qtype)); in quota_data_sub()
263 dq->dq_dqb.dqb_curspace -= space; in quota_data_sub()
273 struct dquot *dq; in quota_data_inodes() local
282 dq = get_dq(dict, get_qid(inode, qtype)); in quota_data_inodes()
283 dq->dq_dqb.dqb_curinodes += adjust; in quota_data_inodes()
322 struct dquot *dq; in scan_dquots_callback() local
324 dq = get_dq(quota_dict, dquot->dq_id); in scan_dquots_callback()
325 dq->dq_id = dquot->dq_id; in scan_dquots_callback()
326 dq->dq_flags |= DQF_SEEN; in scan_dquots_callback()
328 print_dquot("mem", dq); 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()
336 dq->dq_id, (long long) dq->dq_dqb.dqb_curspace, in scan_dquots_callback()
337 (long long) dq->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() local
396 dq = dnode_get(n); in quota_compare_and_update()
397 if (!dq) in quota_compare_and_update()
399 if ((dq->dq_flags & DQF_SEEN) == 0) { in quota_compare_and_update()
401 "Missing quota entry ID %d\n", dq->dq_id); in quota_compare_and_update()