fa9e4066f08beec538e775443c5be79dd423fcabahrens/*
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * The contents of this file are subject to the terms of the
55434c770c89aa1b84474f2559a106803511aba0ek * Common Development and Distribution License (the "License").
55434c770c89aa1b84474f2559a106803511aba0ek * You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens * or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens * and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens * fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens * information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens */
fa9e4066f08beec538e775443c5be79dd423fcabahrens/*
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaum * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens */
fa9e4066f08beec538e775443c5be79dd423fcabahrens
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden/*
dcbf3bd6a1f1360fc1afcee9e22c6dcff7844bf2George Wilson * Copyright (c) 2012, 2015 by Delphix. All rights reserved.
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden */
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
fa9e4066f08beec538e775443c5be79dd423fcabahrens/* LINTLIBRARY */
fa9e4066f08beec538e775443c5be79dd423fcabahrens/* PROTOLIB1 */
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/zfs_context.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/list.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/list_impl.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/sysmacros.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/debug.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/dmu_traverse.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/dnode.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/dsl_prop.h>
4f5064b73b1cc9de1d0f1a2ae700d519d4d565dfMark J Musante#include <sys/dsl_dataset.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/spa.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/spa_impl.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/space_map.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/vdev.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/vdev_impl.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/zap.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/zio.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/zio_compress.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/zil.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens#include <sys/bplist.h>
55434c770c89aa1b84474f2559a106803511aba0ek#include <sys/zfs_znode.h>
88b7b0f29b20b808b9e06071885b1d6a3ddb6328Matthew Ahrens#include <sys/arc.h>
b24ab6762772a3f6a89393947930c7fa61306783Jeff Bonwick#include <sys/dbuf.h>
b24ab6762772a3f6a89393947930c7fa61306783Jeff Bonwick#include <sys/zio_checksum.h>
b24ab6762772a3f6a89393947930c7fa61306783Jeff Bonwick#include <sys/ddt.h>
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaum#include <sys/sa.h>
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaum#include <sys/zfs_sa.h>
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden#include <sys/zfeature.h>
3b2aab18808792cbd248a12f1edf139b89833c13Matthew Ahrens#include <sys/dmu_tx.h>
3b2aab18808792cbd248a12f1edf139b89833c13Matthew Ahrens#include <sys/dsl_destroy.h>
3b2aab18808792cbd248a12f1edf139b89833c13Matthew Ahrens#include <sys/dsl_userhold.h>
5d7b4d438c4a51eccc95e77a83a437b4d48380ebMatthew Ahrens#include <sys/blkptr.h>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
e05725b117836db173257fae43fb0746eb857fb5bonwickextern uint64_t metaslab_gang_bang;
d6e555bdd793b8bc8fe57d5f12c3d69c813d0661George Wilsonextern uint64_t metaslab_df_alloc_threshold;
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Sidenextern boolean_t zfeature_checks_disable;
69962b5647e4a8b9b14998733b765925381b727eMatthew Ahrensextern uint64_t zfs_deadman_synctime_ms;
30beaff42d8240ebf5386e8b7a14e3d137a1631fGeorge Wilsonextern int metaslab_preload_limit;
dcbf3bd6a1f1360fc1afcee9e22c6dcff7844bf2George Wilsonextern boolean_t zfs_compressed_arc_enabled;