Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2017 18:25:22 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r316915 - vendor-sys/illumos/dist/uts/common/fs/zfs
Message-ID:  <201704141825.v3EIPME6070757@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Fri Apr 14 18:25:22 2017
New Revision: 316915
URL: https://svnweb.freebsd.org/changeset/base/316915

Log:
  7801 add more by-dnode routines (lint)
  
  illumos/illumos-gate@411be58a6e030a3b606f1afcc7f2e2459ffda844
  https://github.com/illumos/illumos-gate/commit/411be58a6e030a3b606f1afcc7f2e2459ffda844
  
  https://www.illumos.org/issues/7801
    Add *_by_dnode() routines for accessing objects given their
    dnode_t *, this is more efficient than accessing the object by
    (objset_t *, uint64_t object). This change converts some but
    not all of the existing consumers. As performance-sensitive
    code paths are discovered they should be converted to use
    these routines.
    Ported from: https://github.com/zfsonlinux/zfs/commit/
    0eef1bde31d67091d3deed23fe2394f5a8bf2276
  
  Author: Matthew Ahrens <mahrens@delphix.com>

Modified:
  vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_tx.c

Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_tx.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_tx.c	Fri Apr 14 18:25:02 2017	(r316914)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_tx.c	Fri Apr 14 18:25:22 2017	(r316915)
@@ -336,7 +336,6 @@ dmu_tx_hold_free_impl(dmu_tx_hold_t *txh
 	dmu_tx_t *tx;
 	dnode_t *dn;
 	int err;
-	zio_t *zio;
 
 	tx = txh->txh_tx;
 	ASSERT(tx->tx_txg == 0);
@@ -443,7 +442,7 @@ dmu_tx_hold_free_by_dnode(dmu_tx_t *tx, 
 }
 
 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;
@@ -504,7 +503,7 @@ dmu_tx_hold_zap(dmu_tx_t *tx, uint64_t o
 	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
@@ -517,7 +516,7 @@ dmu_tx_hold_zap_by_dnode(dmu_tx_t *tx, d
 
 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704141825.v3EIPME6070757>