/* Recover QUOTAOFF records. We simply make a note of it in the xlog_t structure, so that we know not to do any dquot item or dquot buffer recovery, of that type.  */
STATIC int xlog_recover_do_quotaoff_trans(xlog_t *log, xlog_recover_item_t *item, int pass)
/* Recover QUOTAOFF records. We simply make a note of it in the xlog_t structure, so that we know not to do any dquot item or dquot buffer recovery, of that type.  */
STATIC int xlog_recover_do_quotaoff_trans(xlog_t *log, xlog_recover_item_t *item, int pass)
{
	xfs_qoff_logformat_t	*qoff_f;
	if (pass == XLOG_RECOVER_PASS2) {
		return (0);
	}
	qoff_f = (xfs_qoff_logformat_t *)item->ri_buf[0].i_addr;
	ASSERT(qoff_f);
	if (qoff_f->qf_flags & XFS_UQUOTA_ACCT)
		log->l_quotaoffs_flag |= XFS_DQ_USER;
	if (qoff_f->qf_flags & XFS_PQUOTA_ACCT)
		log->l_quotaoffs_flag |= XFS_DQ_PROJ;
	if (qoff_f->qf_flags & XFS_GQUOTA_ACCT)
		log->l_quotaoffs_flag |= XFS_DQ_GROUP;
	return (0);
}