mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 19:57:43 +03:00
Fix dnode refcount tracking
Fix a couple of places where the wrong tag is passed
to dnode_{hold, rele}
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #11184
This commit is contained in:
@@ -858,7 +858,7 @@ hold_next_object(objset_t *os, struct redact_record *rec, void *tag,
|
||||
{
|
||||
int err = 0;
|
||||
if (*dn != NULL)
|
||||
dnode_rele(*dn, FTAG);
|
||||
dnode_rele(*dn, tag);
|
||||
*dn = NULL;
|
||||
if (*object < rec->start_object) {
|
||||
*object = rec->start_object - 1;
|
||||
|
||||
Reference in New Issue
Block a user