Deleted Added
full compact
dmu_tx.h (248571) dmu_tx.h (258632)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 9 unchanged lines hidden (view full) ---

18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 9 unchanged lines hidden (view full) ---

18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25/*
26 * Copyright (c) 2012 by Delphix. All rights reserved.
26 * Copyright (c) 2013 by Delphix. All rights reserved.
27 */
28
29#ifndef _SYS_DMU_TX_H
30#define _SYS_DMU_TX_H
31
32#include <sys/dmu.h>
33#include <sys/txg.h>
34#include <sys/refcount.h>

--- 19 unchanged lines hidden (view full) ---

54 struct dsl_dir *tx_dir;
55 struct dsl_pool *tx_pool;
56 uint64_t tx_txg;
57 uint64_t tx_lastsnap_txg;
58 uint64_t tx_lasttried_txg;
59 txg_handle_t tx_txgh;
60 void *tx_tempreserve_cookie;
61 struct dmu_tx_hold *tx_needassign_txh;
27 */
28
29#ifndef _SYS_DMU_TX_H
30#define _SYS_DMU_TX_H
31
32#include <sys/dmu.h>
33#include <sys/txg.h>
34#include <sys/refcount.h>

--- 19 unchanged lines hidden (view full) ---

54 struct dsl_dir *tx_dir;
55 struct dsl_pool *tx_pool;
56 uint64_t tx_txg;
57 uint64_t tx_lastsnap_txg;
58 uint64_t tx_lasttried_txg;
59 txg_handle_t tx_txgh;
60 void *tx_tempreserve_cookie;
61 struct dmu_tx_hold *tx_needassign_txh;
62 list_t tx_callbacks; /* list of dmu_tx_callback_t on this dmu_tx */
63 uint8_t tx_anyobj;
62
63 /* list of dmu_tx_callback_t on this dmu_tx */
64 list_t tx_callbacks;
65
66 /* placeholder for syncing context, doesn't need specific holds */
67 boolean_t tx_anyobj;
68
69 /* has this transaction already been delayed? */
70 boolean_t tx_waited;
71
72 /* time this transaction was created */
73 hrtime_t tx_start;
74
75 /* need to wait for sufficient dirty space */
76 boolean_t tx_wait_dirty;
77
64 int tx_err;
65#ifdef ZFS_DEBUG
66 uint64_t tx_space_towrite;
67 uint64_t tx_space_tofree;
68 uint64_t tx_space_tooverwrite;
69 uint64_t tx_space_tounref;
70 refcount_t tx_space_written;
71 refcount_t tx_space_freed;

--- 80 unchanged lines hidden ---
78 int tx_err;
79#ifdef ZFS_DEBUG
80 uint64_t tx_space_towrite;
81 uint64_t tx_space_tofree;
82 uint64_t tx_space_tooverwrite;
83 uint64_t tx_space_tounref;
84 refcount_t tx_space_written;
85 refcount_t tx_space_freed;

--- 80 unchanged lines hidden ---