Lines Matching refs:scan_data
528 struct scan_dquots_data *scan_data = cb_data; in scan_dquots_callback() local
529 dict_t *quota_dict = scan_data->quota_dict; in scan_dquots_callback()
540 if (scan_data->check_consistency && in scan_dquots_callback()
543 scan_data->usage_is_inconsistent = 1; in scan_dquots_callback()
552 if (scan_data->update_limits) { in scan_dquots_callback()
559 if (scan_data->update_usage) { in scan_dquots_callback()
574 struct scan_dquots_data scan_data; in quota_read_all_dquots() local
576 scan_data.quota_dict = qctx->quota_dict[qh->qh_type]; in quota_read_all_dquots()
577 scan_data.check_consistency = 0; in quota_read_all_dquots()
578 scan_data.update_limits = 0; in quota_read_all_dquots()
579 scan_data.update_usage = 1; in quota_read_all_dquots()
581 return qh->qh_ops->scan_dquots(qh, scan_dquots_callback, &scan_data); in quota_read_all_dquots()
651 struct scan_dquots_data scan_data; in quota_compare_and_update() local
666 scan_data.quota_dict = qctx->quota_dict[qtype]; in quota_compare_and_update()
667 scan_data.update_limits = 1; in quota_compare_and_update()
668 scan_data.update_usage = 0; in quota_compare_and_update()
669 scan_data.check_consistency = 1; in quota_compare_and_update()
670 scan_data.usage_is_inconsistent = 0; in quota_compare_and_update()
671 err = qh.qh_ops->scan_dquots(&qh, scan_dquots_callback, &scan_data); in quota_compare_and_update()
684 scan_data.usage_is_inconsistent = 1; in quota_compare_and_update()
687 *usage_inconsistent = scan_data.usage_is_inconsistent; in quota_compare_and_update()