Skip to content

Commit

Permalink
OpenZFS 7801 - add more by-dnode routines (lint)
Browse files Browse the repository at this point in the history
Authored by: Matthew Ahrens <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Ported-by: Giuseppe Di Natale <[email protected]>

OpenZFS-issue: https://www.illumos.org/issues/7801
OpenZFS-commit: openzfs/openzfs@f25efb3
Closes #5894
  • Loading branch information
ahrens authored and behlendorf committed Mar 20, 2017
1 parent 8614ddf commit 9522bd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/zfs/dmu_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ dmu_tx_hold_free_by_dnode(dmu_tx_t *tx, dnode_t *dn, uint64_t off, uint64_t len)
}

static void
dmu_tx_hold_zap_impl(dmu_tx_hold_t *txh, int add, const char *name)
dmu_tx_hold_zap_impl(dmu_tx_hold_t *txh, const char *name)
{
dmu_tx_t *tx = txh->txh_tx;
dnode_t *dn = txh->txh_dnode;
Expand Down Expand Up @@ -517,7 +517,7 @@ dmu_tx_hold_zap(dmu_tx_t *tx, uint64_t object, int add, const char *name)
txh = dmu_tx_hold_object_impl(tx, tx->tx_objset,
object, THT_ZAP, add, (uintptr_t)name);
if (txh != NULL)
dmu_tx_hold_zap_impl(txh, add, name);
dmu_tx_hold_zap_impl(txh, name);
}

void
Expand All @@ -530,7 +530,7 @@ dmu_tx_hold_zap_by_dnode(dmu_tx_t *tx, dnode_t *dn, int add, const char *name)

txh = dmu_tx_hold_dnode_impl(tx, dn, THT_ZAP, add, (uintptr_t)name);
if (txh != NULL)
dmu_tx_hold_zap_impl(txh, add, name);
dmu_tx_hold_zap_impl(txh, name);
}

void
Expand Down

0 comments on commit 9522bd2

Please sign in to comment.