]> git.proxmox.com Git - mirror_zfs.git/commitdiff
dnode_special_open() error: unchecked function return 'zrl_tryenter'
authorToomas Soome <tsoome@me.com>
Tue, 8 Sep 2020 18:36:52 +0000 (21:36 +0300)
committerGitHub <noreply@github.com>
Tue, 8 Sep 2020 18:36:52 +0000 (11:36 -0700)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Toomas Soome <tsoome@me.com>
Closes #10876

module/zfs/dnode.c

index 00536f2774e7b51f8be3e95a9be32f601a18fe7d..43a2fcad6654a2c10c8ad677c9e6eb897dda9a14 100644 (file)
@@ -1197,7 +1197,7 @@ dnode_special_open(objset_t *os, dnode_phys_t *dnp, uint64_t object,
        dnode_t *dn;
 
        zrl_init(&dnh->dnh_zrlock);
-       zrl_tryenter(&dnh->dnh_zrlock);
+       VERIFY3U(1, ==, zrl_tryenter(&dnh->dnh_zrlock));
 
        dn = dnode_create(os, dnp, NULL, object, dnh);
        DNODE_VERIFY(dn);