]> granicus.if.org Git - zfs/commit
Check b_freeze_cksum under ZFS_DEBUG_MODIFY conditional
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Jul 2019 20:01:54 +0000 (13:01 -0700)
committerGitHub <noreply@github.com>
Wed, 3 Jul 2019 20:01:54 +0000 (13:01 -0700)
commit46db9d6161d0781f00ee3cb5bc02e11685d2ffaf
treed202fd9d881de0b48b7ab0a727798e3057332f7b
parentaa79910726f29cc056c260507b678dd2feba85b6
Check b_freeze_cksum under ZFS_DEBUG_MODIFY conditional

The b_freeze_cksum field can only have data when ZFS_DEBUG_MODIFY
is set.  Therefore, the EQUIV check must be wrapped accordingly.
For the same reason the ASSERT in arc_buf_fill() in unsafe.
However, since it's largely redundant it has simply been removed.

Reviewed-by: George Wilson <gwilson@delphix.com>
Reviewed-by: Allan Jude <allanjude@freebsd.org>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8979
module/zfs/arc.c