Deleted Added
full compact
dbuf.c (228392) dbuf.c (236884)
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

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

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 2011 Nexenta Systems, Inc. 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

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

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 2011 Nexenta Systems, Inc. All rights reserved.
24 * Copyright (c) 2012 by Delphix. All rights reserved.
24 */
25
26#include <sys/zfs_context.h>
27#include <sys/dmu.h>
28#include <sys/dmu_impl.h>
29#include <sys/dbuf.h>
30#include <sys/dmu_objset.h>
31#include <sys/dsl_dataset.h>

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

222dbuf_is_metadata(dmu_buf_impl_t *db)
223{
224 if (db->db_level > 0) {
225 return (B_TRUE);
226 } else {
227 boolean_t is_metadata;
228
229 DB_DNODE_ENTER(db);
25 */
26
27#include <sys/zfs_context.h>
28#include <sys/dmu.h>
29#include <sys/dmu_impl.h>
30#include <sys/dbuf.h>
31#include <sys/dmu_objset.h>
32#include <sys/dsl_dataset.h>

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

223dbuf_is_metadata(dmu_buf_impl_t *db)
224{
225 if (db->db_level > 0) {
226 return (B_TRUE);
227 } else {
228 boolean_t is_metadata;
229
230 DB_DNODE_ENTER(db);
230 is_metadata = dmu_ot[DB_DNODE(db)->dn_type].ot_metadata;
231 is_metadata = DMU_OT_IS_METADATA(DB_DNODE(db)->dn_type);
231 DB_DNODE_EXIT(db);
232
233 return (is_metadata);
234 }
235}
236
237void
238dbuf_evict(dmu_buf_impl_t *db)

--- 2485 unchanged lines hidden ---
232 DB_DNODE_EXIT(db);
233
234 return (is_metadata);
235 }
236}
237
238void
239dbuf_evict(dmu_buf_impl_t *db)

--- 2485 unchanged lines hidden ---