]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/rrwlock.c
Make use of ZFS_DEBUG consistent within kmod sources
[mirror_zfs.git] / module / zfs / rrwlock.c
index c6d358b347e545e2c29e26b666799c1bfe9dbaec..a2b784837461483a452bfcb524af572bb551343c 100644 (file)
@@ -164,7 +164,7 @@ static void
 rrw_enter_read_impl(rrwlock_t *rrl, boolean_t prio, void *tag)
 {
        mutex_enter(&rrl->rr_lock);
-#if !defined(DEBUG) && defined(_KERNEL)
+#if !defined(ZFS_DEBUG) && defined(_KERNEL)
        if (rrl->rr_writer == NULL && !rrl->rr_writer_wanted &&
            !rrl->rr_track_all) {
                rrl->rr_anon_rcount.rc_count++;
@@ -241,7 +241,7 @@ void
 rrw_exit(rrwlock_t *rrl, void *tag)
 {
        mutex_enter(&rrl->rr_lock);
-#if !defined(DEBUG) && defined(_KERNEL)
+#if !defined(ZFS_DEBUG) && defined(_KERNEL)
        if (!rrl->rr_writer && rrl->rr_linked_rcount.rc_count == 0) {
                rrl->rr_anon_rcount.rc_count--;
                if (rrl->rr_anon_rcount.rc_count == 0)