Lines Matching refs:qh
106 static void write_dquots(dict_t *dict, struct quota_handle *qh) in write_dquots() argument
114 dq->dq_h = qh; in write_dquots()
116 qh->qh_ops->commit_dquot(dq); in write_dquots()
453 static errcode_t quota_read_all_dquots(struct quota_handle *qh, in quota_read_all_dquots() argument
458 scan_data.quota_dict = qctx->quota_dict[qh->qh_type]; in quota_read_all_dquots()
462 return qh->qh_ops->scan_dquots(qh, scan_dquots_callback, &scan_data); in quota_read_all_dquots()
469 static errcode_t quota_write_all_dquots(struct quota_handle *qh,
477 write_dquots(qctx->quota_dict[qh->qh_type], qh);
490 struct quota_handle *qh; in quota_update_limits() local
496 err = ext2fs_get_mem(sizeof(struct quota_handle), &qh); in quota_update_limits()
502 err = quota_file_open(qh, qctx->fs, qf_ino, type, -1, 0); in quota_update_limits()
508 quota_read_all_dquots(qh, qctx, 1); in quota_update_limits()
510 err = quota_file_close(qh); in quota_update_limits()
514 if (qh->qh_qf.e2_file) in quota_update_limits()
515 ext2fs_file_close(qh->qh_qf.e2_file); in quota_update_limits()
518 ext2fs_free_mem(&qh); in quota_update_limits()
531 struct quota_handle qh; in quota_compare_and_update() local
541 err = quota_file_open(&qh, fs, qf_ino, qtype, -1, 0); in quota_compare_and_update()
551 err = qh.qh_ops->scan_dquots(&qh, scan_dquots_callback, &scan_data); in quota_compare_and_update()