Lines Matching refs:qh
147 static void write_dquots(dict_t *dict, struct quota_handle *qh) in write_dquots() argument
156 dq->dq_h = qh; in write_dquots()
158 qh->qh_ops->commit_dquot(dq); in write_dquots()
577 static errcode_t quota_read_all_dquots(struct quota_handle *qh, in quota_read_all_dquots() argument
583 scan_data.quota_dict = qctx->quota_dict[qh->qh_type]; in quota_read_all_dquots()
588 return qh->qh_ops->scan_dquots(qh, scan_dquots_callback, &scan_data); in quota_read_all_dquots()
595 static errcode_t quota_write_all_dquots(struct quota_handle *qh,
603 write_dquots(qctx->quota_dict[qh->qh_type], qh);
617 struct quota_handle *qh; in quota_update_limits() local
623 err = ext2fs_get_mem(sizeof(struct quota_handle), &qh); in quota_update_limits()
629 err = quota_file_open(qctx, qh, qf_ino, qtype, -1, 0); in quota_update_limits()
635 quota_read_all_dquots(qh, qctx, 1); in quota_update_limits()
637 err = quota_file_close(qctx, qh); in quota_update_limits()
641 if (qh->qh_qf.e2_file) in quota_update_limits()
642 ext2fs_file_close(qh->qh_qf.e2_file); in quota_update_limits()
645 ext2fs_free_mem(&qh); in quota_update_limits()
657 struct quota_handle qh; in quota_compare_and_update() local
667 err = quota_file_open(qctx, &qh, 0, qtype, -1, 0); in quota_compare_and_update()
678 err = qh.qh_ops->scan_dquots(&qh, scan_dquots_callback, &scan_data); in quota_compare_and_update()
698 err = quota_file_close(qctx, &qh); in quota_compare_and_update()
701 if (qh.qh_qf.e2_file) in quota_compare_and_update()
702 ext2fs_file_close(qh.qh_qf.e2_file); in quota_compare_and_update()