From b155a243a6c8a73a57d64534e21ef3593f6ac5e2 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Tue, 8 Sep 2020 21:36:52 +0300 Subject: [PATCH] dnode_special_open() error: unchecked function return 'zrl_tryenter' Reviewed-by: Brian Behlendorf Signed-off-by: Toomas Soome Closes #10876 --- module/zfs/dnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/dnode.c b/module/zfs/dnode.c index 00536f2774..43a2fcad66 100644 --- a/module/zfs/dnode.c +++ b/module/zfs/dnode.c @@ -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);