Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
7801 add more by-dnode routines (lint)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrens committed Mar 15, 2017
1 parent b0c42cd commit 411be58
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions usr/src/uts/common/fs/zfs/dmu_tx.c
Expand Up @@ -336,7 +336,6 @@ dmu_tx_hold_free_impl(dmu_tx_hold_t *txh, uint64_t off, uint64_t len)
dmu_tx_t *tx;
dnode_t *dn;
int err;
zio_t *zio;

tx = txh->txh_tx;
ASSERT(tx->tx_txg == 0);
Expand Down Expand Up @@ -443,7 +442,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;
Expand Down Expand Up @@ -504,7 +503,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 @@ -517,7 +516,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 411be58

Please sign in to comment.