Skip to content

Commit

Permalink
dnode_special_open() error: unchecked function return 'zrl_tryenter'
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Toomas Soome <tsoome@me.com>
Closes #10876
  • Loading branch information
tsoome authored Sep 8, 2020
1 parent 5a877a8 commit 189272f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/dnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 189272f

Please sign in to comment.