Change zfs-kmod-devel install path
[zfs.git] / include / sys / metaslab_impl.h
index 07988dd..6583594 100644 (file)
@@ -21,6 +21,7 @@
 /*
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ * Copyright (c) 2011 by Delphix. All rights reserved.
  */
 
 #ifndef _SYS_METASLAB_IMPL_H
@@ -45,6 +46,7 @@ struct metaslab_class {
        uint64_t                mc_deferred;    /* total deferred frees */
        uint64_t                mc_space;       /* total space (alloc + free) */
        uint64_t                mc_dspace;      /* total deflated space */
+       kmutex_t                mc_fastwrite_lock;
 };
 
 struct metaslab_group {
@@ -52,6 +54,7 @@ struct metaslab_group {
        avl_tree_t              mg_metaslab_tree;
        uint64_t                mg_aliquot;
        uint64_t                mg_bonus_area;
+       uint64_t                mg_alloc_failures;
        int64_t                 mg_bias;
        int64_t                 mg_activation_count;
        metaslab_class_t        *mg_class;