]> git.proxmox.com Git - mirror_zfs.git/commitdiff
OpenZFS 7801 - add more by-dnode routines (lint)
authorMatthew Ahrens <mahrens@delphix.com>
Wed, 15 Mar 2017 12:49:59 +0000 (08:49 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 20 Mar 2017 19:33:17 +0000 (12:33 -0700)
Authored by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/7801
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/f25efb3
Closes #5894

module/zfs/dmu_tx.c

index ebab5a34165cbd2da19b3d4113e8c1bea43723d4..0f7a38c0ce31db1419d8b92c6d329673b118fef3 100644 (file)
@@ -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;
@@ -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
@@ -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