]> granicus.if.org Git - zfs/commitdiff
Delete unreferenced function zfs_ereport_send_interim_checksum
authorluozhengzheng <luo.zhengzheng@zte.com.cn>
Wed, 31 Aug 2016 11:07:36 +0000 (19:07 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 Sep 2016 18:39:45 +0000 (11:39 -0700)
Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5055

include/sys/zio.h
module/zfs/zfs_fm.c

index d5a1494df2a5933c448754caa428b8f5e93df1da..42e85e666d7ae365a9c0775f68ef4baaa9ed9d29 100644 (file)
@@ -587,7 +587,6 @@ extern void zfs_ereport_start_checksum(spa_t *spa, vdev_t *vd, struct zio *zio,
 extern void zfs_ereport_finish_checksum(zio_cksum_report_t *report,
     const void *good_data, const void *bad_data, boolean_t drop_if_identical);
 
-extern void zfs_ereport_send_interim_checksum(zio_cksum_report_t *report);
 extern void zfs_ereport_free_checksum(zio_cksum_report_t *report);
 
 /* If we have the good data in hand, this function can be used */
index a75997bd8776fb1bfecda3879a03199571fff325..0871fa95b056b03ac7d3b16736b80ca08db92296 100644 (file)
@@ -112,10 +112,6 @@ zfs_zevent_post_cb(nvlist_t *nvl, nvlist_t *detector)
                fm_nvlist_destroy(detector, FM_NVA_FREE);
 }
 
-static void
-zfs_zevent_post_cb_noop(nvlist_t *nvl, nvlist_t *detector)
-{
-}
 
 static void
 zfs_ereport_start(nvlist_t **ereport_out, nvlist_t **detector_out,
@@ -824,14 +820,6 @@ zfs_ereport_free_checksum(zio_cksum_report_t *rpt)
        kmem_free(rpt, sizeof (*rpt));
 }
 
-void
-zfs_ereport_send_interim_checksum(zio_cksum_report_t *report)
-{
-#ifdef _KERNEL
-       zfs_zevent_post(report->zcr_ereport, report->zcr_detector,
-           zfs_zevent_post_cb_noop);
-#endif
-}
 
 void
 zfs_ereport_post_checksum(spa_t *spa, vdev_t *vd,