1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 9 unchanged lines hidden (view full) --- 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 |
26/* 27 * Copyright (c) 2012 by Delphix. All rights reserved. 28 */ 29 |
30#include <sys/spa.h> 31#include <sys/spa_impl.h> 32#include <sys/vdev.h> 33#include <sys/vdev_impl.h> 34#include <sys/zio.h> 35#include <sys/zio_checksum.h> 36 37#include <sys/fm/fs/zfs.h> --- 670 unchanged lines hidden (view full) --- 708 report->zcr_length = length; 709 710#ifdef _KERNEL 711 zfs_ereport_start(&report->zcr_ereport, &report->zcr_detector, 712 FM_EREPORT_ZFS_CHECKSUM, spa, vd, zio, offset, length); 713 714 if (report->zcr_ereport == NULL) { 715 report->zcr_free(report->zcr_cbdata, report->zcr_cbinfo); |
716 if (report->zcr_ckinfo != NULL) { 717 kmem_free(report->zcr_ckinfo, 718 sizeof (*report->zcr_ckinfo)); 719 } |
720 kmem_free(report, sizeof (*report)); 721 return; 722 } 723#endif 724 725 mutex_enter(&spa->spa_errlist_lock); 726 report->zcr_next = zio->io_logical->io_cksum_report; 727 zio->io_logical->io_cksum_report = report; --- 144 unchanged lines hidden --- |