MFC r316915: 7801 add more by-dnode routines (lint)
illumos/illumos-gate@411be58a6e
411be58a6e
MFC after: 24 days
X-MFC with: r318823
This commit is contained in:
commit
1d7634429c
@ -336,7 +336,6 @@ dmu_tx_hold_free_impl(dmu_tx_hold_t *txh, uint64_t off, uint64_t len)
|
|||||||
dmu_tx_t *tx;
|
dmu_tx_t *tx;
|
||||||
dnode_t *dn;
|
dnode_t *dn;
|
||||||
int err;
|
int err;
|
||||||
zio_t *zio;
|
|
||||||
|
|
||||||
tx = txh->txh_tx;
|
tx = txh->txh_tx;
|
||||||
ASSERT(tx->tx_txg == 0);
|
ASSERT(tx->tx_txg == 0);
|
||||||
@ -444,7 +443,7 @@ dmu_tx_hold_free_by_dnode(dmu_tx_t *tx, dnode_t *dn, uint64_t off, uint64_t len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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;
|
dmu_tx_t *tx = txh->txh_tx;
|
||||||
dnode_t *dn;
|
dnode_t *dn;
|
||||||
@ -505,7 +504,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,
|
txh = dmu_tx_hold_object_impl(tx, tx->tx_objset,
|
||||||
object, THT_ZAP, add, (uintptr_t)name);
|
object, THT_ZAP, add, (uintptr_t)name);
|
||||||
if (txh != NULL)
|
if (txh != NULL)
|
||||||
dmu_tx_hold_zap_impl(txh, add, name);
|
dmu_tx_hold_zap_impl(txh, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -518,7 +517,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);
|
txh = dmu_tx_hold_dnode_impl(tx, dn, THT_ZAP, add, (uintptr_t)name);
|
||||||
if (txh != NULL)
|
if (txh != NULL)
|
||||||
dmu_tx_hold_zap_impl(txh, add, name);
|
dmu_tx_hold_zap_impl(txh, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user