/* Perform a dquot buffer recovery. Simple algorithm: if we have found a QUOTAOFF logitem of the same type (ie. USR or GRP), then just toss this buffer away; don't recover it. Else, treat it as a regular buffer and do recovery.  */
STATIC void xlog_recover_do_dquot_buffer(xfs_mount_t *mp, xlog_t *log, xlog_recover_item_t *item, xfs_buf_t *bp, xfs_buf_log_format_t *buf_f)
/* Perform a dquot buffer recovery. Simple algorithm: if we have found a QUOTAOFF logitem of the same type (ie. USR or GRP), then just toss this buffer away; don't recover it. Else, treat it as a regular buffer and do recovery.  */
STATIC void xlog_recover_do_dquot_buffer(xfs_mount_t *mp, xlog_t *log, xlog_recover_item_t *item, xfs_buf_t *bp, xfs_buf_log_format_t *buf_f)
{
	uint			type;
	if (mp->m_qflags == 0) {
		return;
	}
	type = 0;
	if (buf_f->blf_flags & XFS_BLI_UDQUOT_BUF)
		type |= XFS_DQ_USER;
	if (buf_f->blf_flags & XFS_BLI_PDQUOT_BUF)
		type |= XFS_DQ_PROJ;
	if (buf_f->blf_flags & XFS_BLI_GDQUOT_BUF)
		type |= XFS_DQ_GROUP;
	if (log->l_quotaoffs_flag & type)
		return;
	xlog_recover_do_reg_buffer(item, bp, buf_f);
}