zfs_fm.c (219089) | zfs_fm.c (230514) |
---|---|
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 | 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 |
|
26#include <sys/spa.h> 27#include <sys/spa_impl.h> 28#include <sys/vdev.h> 29#include <sys/vdev_impl.h> 30#include <sys/zio.h> 31#include <sys/zio_checksum.h> 32 33#include <sys/fm/fs/zfs.h> --- 670 unchanged lines hidden (view full) --- 704 report->zcr_length = length; 705 706#ifdef _KERNEL 707 zfs_ereport_start(&report->zcr_ereport, &report->zcr_detector, 708 FM_EREPORT_ZFS_CHECKSUM, spa, vd, zio, offset, length); 709 710 if (report->zcr_ereport == NULL) { 711 report->zcr_free(report->zcr_cbdata, report->zcr_cbinfo); | 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 } |
|
712 kmem_free(report, sizeof (*report)); 713 return; 714 } 715#endif 716 717 mutex_enter(&spa->spa_errlist_lock); 718 report->zcr_next = zio->io_logical->io_cksum_report; 719 zio->io_logical->io_cksum_report = report; --- 144 unchanged lines hidden --- | 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 --- |