Deleted Added
full compact
dnode.h (321547) dnode.h (321553)
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

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
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

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2012, 2016 by Delphix. All rights reserved.
23 * Copyright (c) 2012, 2017 by Delphix. All rights reserved.
24 * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved.
25 */
26
27#ifndef _SYS_DNODE_H
28#define _SYS_DNODE_H
29
30#include <sys/zfs_context.h>
31#include <sys/avl.h>
32#include <sys/spa.h>
33#include <sys/txg.h>
34#include <sys/zio.h>
35#include <sys/refcount.h>
36#include <sys/dmu_zfetch.h>
37#include <sys/zrlock.h>
24 * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved.
25 */
26
27#ifndef _SYS_DNODE_H
28#define _SYS_DNODE_H
29
30#include <sys/zfs_context.h>
31#include <sys/avl.h>
32#include <sys/spa.h>
33#include <sys/txg.h>
34#include <sys/zio.h>
35#include <sys/refcount.h>
36#include <sys/dmu_zfetch.h>
37#include <sys/zrlock.h>
38#include <sys/multilist.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/*
44 * dnode_hold() flags.
45 */

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

198 uint8_t dn_rm_spillblk[TXG_SIZE]; /* for removing spill blk */
199 uint16_t dn_next_bonuslen[TXG_SIZE];
200 uint32_t dn_next_blksz[TXG_SIZE]; /* next block size in bytes */
201
202 /* protected by dn_dbufs_mtx; declared here to fill 32-bit hole */
203 uint32_t dn_dbufs_count; /* count of dn_dbufs */
204
205 /* protected by os_lock: */
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
44/*
45 * dnode_hold() flags.
46 */

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

199 uint8_t dn_rm_spillblk[TXG_SIZE]; /* for removing spill blk */
200 uint16_t dn_next_bonuslen[TXG_SIZE];
201 uint32_t dn_next_blksz[TXG_SIZE]; /* next block size in bytes */
202
203 /* protected by dn_dbufs_mtx; declared here to fill 32-bit hole */
204 uint32_t dn_dbufs_count; /* count of dn_dbufs */
205
206 /* protected by os_lock: */
206 list_node_t dn_dirty_link[TXG_SIZE]; /* next on dataset's dirty */
207 multilist_node_t dn_dirty_link[TXG_SIZE]; /* next on dataset's dirty */
207
208 /* protected by dn_mtx: */
209 kmutex_t dn_mtx;
210 list_t dn_dirty_records[TXG_SIZE];
211 struct range_tree *dn_free_ranges[TXG_SIZE];
212 uint64_t dn_allocated_txg;
213 uint64_t dn_free_txg;
214 uint64_t dn_assigned_txg;

--- 147 unchanged lines hidden ---
208
209 /* protected by dn_mtx: */
210 kmutex_t dn_mtx;
211 list_t dn_dirty_records[TXG_SIZE];
212 struct range_tree *dn_free_ranges[TXG_SIZE];
213 uint64_t dn_allocated_txg;
214 uint64_t dn_free_txg;
215 uint64_t dn_assigned_txg;

--- 147 unchanged lines hidden ---