mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01:00
ddt_log: Fix refcount tagging for begin/commit
Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Rob Norris <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Igor Ostapenko <[email protected]> Closes #18706
This commit is contained in:
1 parent
d3af7c265f
commit
37af899488
1 file changed
+2
-2
@@ -211,7 +211,7 @@ ddt_log_begin(ddt_t *ddt, size_t nentries, dmu_tx_t *tx, ddt_log_update_t *dlu)
|
||||
ASSERT3U(reclen, <=, UINT16_MAX);
|
||||
dlu->dlu_reclen = reclen;
|
||||
|
||||
VERIFY0(dnode_hold(ddt->ddt_os, ddt->ddt_log_active->ddl_object, FTAG,
|
||||
VERIFY0(dnode_hold(ddt->ddt_os, ddt->ddt_log_active->ddl_object, dlu,
|
||||
&dlu->dlu_dn));
|
||||
dnode_set_storage_type(dlu->dlu_dn, DMU_OT_DDT_ZAP);
|
||||
|
||||
@@ -342,7 +342,7 @@ ddt_log_commit(ddt_t *ddt, ddt_log_update_t *dlu)
|
||||
|
||||
ddt->ddt_log_active->ddl_length +=
|
||||
dlu->dlu_ndbp * (uint64_t)dlu->dlu_dn->dn_datablksz;
|
||||
dnode_rele(dlu->dlu_dn, FTAG);
|
||||
dnode_rele(dlu->dlu_dn, dlu);
|
||||
|
||||
ddt_log_update_header(ddt, ddt->ddt_log_active, dlu->dlu_tx);
|
||||
|
||||
|
||||
Reference in new issue
Block a user