Print this page
NEX-5795 Rename 'wrc' as 'wbc' in the source and in the tech docs
Reviewed by: Alex Aizman <alex.aizman@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
re #12585 rb4049 ZFS++ work port - refactoring to improve separation of open/closed code, bug fixes, performance improvements - open code
Bug 11205: add missing libzfs_closed_stubs.c to fix opensource-only build.
ZFS plus work: special vdevs, cos, cos/vdev properties

@@ -19,10 +19,11 @@
  * CDDL HEADER END
  */
 /*
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  */
 /*
  * Copyright (c) 2012, 2016 by Delphix. All rights reserved.
  */
 

@@ -65,22 +66,22 @@
         list_t tx_callbacks;
 
         /* placeholder for syncing context, doesn't need specific holds */
         boolean_t tx_anyobj;
 
+        /* has this transaction already been delayed? */
+        boolean_t tx_waited;
+
         /* transaction is marked as being a "net free" of space */
         boolean_t tx_netfree;
 
         /* time this transaction was created */
         hrtime_t tx_start;
 
         /* need to wait for sufficient dirty space */
         boolean_t tx_wait_dirty;
 
-        /* has this transaction already been delayed? */
-        boolean_t tx_dirty_delayed;
-
         int tx_err;
 };
 
 enum dmu_tx_hold_type {
         THT_NEWOBJECT,

@@ -112,11 +113,11 @@
 
 /*
  * These routines are defined in dmu.h, and are called by the user.
  */
 dmu_tx_t *dmu_tx_create(objset_t *dd);
-int dmu_tx_assign(dmu_tx_t *tx, uint64_t txg_how);
+int dmu_tx_assign(dmu_tx_t *tx, txg_how_t txg_how);
 void dmu_tx_commit(dmu_tx_t *tx);
 void dmu_tx_abort(dmu_tx_t *tx);
 uint64_t dmu_tx_get_txg(dmu_tx_t *tx);
 struct dsl_pool *dmu_tx_pool(dmu_tx_t *tx);
 void dmu_tx_wait(dmu_tx_t *tx);