]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Fix a typo in ac2038a
authorGeorge Amanakis <gamanakis@gmail.com>
Tue, 7 Mar 2023 21:50:44 +0000 (22:50 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Mar 2023 21:50:44 +0000 (13:50 -0800)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #14585
Closes #14592

cmd/zdb/zdb.c

index 58bd1da579cdde74a7f77470b9574b738ef29f67..6c8d737130eec190a1c21a4e40b693f20cab4a1a 100644 (file)
@@ -7689,7 +7689,7 @@ dump_mos_leaks(spa_t *spa)
        mos_obj_refd(spa->spa_errlog_last);
        mos_obj_refd(spa->spa_errlog_scrub);
 
-       if (!spa_feature_is_enabled(spa, SPA_FEATURE_HEAD_ERRLOG)) {
+       if (spa_feature_is_enabled(spa, SPA_FEATURE_HEAD_ERRLOG)) {
                errorlog_count_refd(mos, spa->spa_errlog_last);
                errorlog_count_refd(mos, spa->spa_errlog_scrub);
        }