Deleted Added
full compact
dmu_tx.h (219089) dmu_tx.h (248571)
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

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

17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
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

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

17 * information: Portions Copyright [yyyy] [name of copyright owner]
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.
27 */
25
26#ifndef _SYS_DMU_TX_H
27#define _SYS_DMU_TX_H
28
29#include <sys/dmu.h>
30#include <sys/txg.h>
31#include <sys/refcount.h>
32

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

102 dmu_tx_callback_func_t *dcb_func; /* caller function pointer */
103 void *dcb_data; /* caller private data */
104} dmu_tx_callback_t;
105
106/*
107 * These routines are defined in dmu.h, and are called by the user.
108 */
109dmu_tx_t *dmu_tx_create(objset_t *dd);
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>
35

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

105 dmu_tx_callback_func_t *dcb_func; /* caller function pointer */
106 void *dcb_data; /* caller private data */
107} dmu_tx_callback_t;
108
109/*
110 * These routines are defined in dmu.h, and are called by the user.
111 */
112dmu_tx_t *dmu_tx_create(objset_t *dd);
110int dmu_tx_assign(dmu_tx_t *tx, uint64_t txg_how);
113int dmu_tx_assign(dmu_tx_t *tx, txg_how_t txg_how);
111void dmu_tx_commit(dmu_tx_t *tx);
112void dmu_tx_abort(dmu_tx_t *tx);
113uint64_t dmu_tx_get_txg(dmu_tx_t *tx);
114void dmu_tx_commit(dmu_tx_t *tx);
115void dmu_tx_abort(dmu_tx_t *tx);
116uint64_t dmu_tx_get_txg(dmu_tx_t *tx);
117struct dsl_pool *dmu_tx_pool(dmu_tx_t *tx);
114void dmu_tx_wait(dmu_tx_t *tx);
115
116void dmu_tx_callback_register(dmu_tx_t *tx, dmu_tx_callback_func_t *dcb_func,
117 void *dcb_data);
118void dmu_tx_do_callbacks(list_t *cb_list, int error);
119
120/*
121 * These routines are defined in dmu_spa.h, and are called by the SPA.

--- 26 unchanged lines hidden ---
118void dmu_tx_wait(dmu_tx_t *tx);
119
120void dmu_tx_callback_register(dmu_tx_t *tx, dmu_tx_callback_func_t *dcb_func,
121 void *dcb_data);
122void dmu_tx_do_callbacks(list_t *cb_list, int error);
123
124/*
125 * These routines are defined in dmu_spa.h, and are called by the SPA.

--- 26 unchanged lines hidden ---