Print this page
8115 parallel zfs mount

@@ -20,10 +20,12 @@
  */
 
 /*
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright 2017 RackTop Systems.
  */
 
 #ifndef _LGRP_H
 #define _LGRP_H
 

@@ -37,15 +39,15 @@
 extern "C" {
 #endif
 
 #define LGRP_NONE       (-1)            /* non-existent lgroup ID */
 
-#if (!defined(_KERNEL) && !defined(_KMEMUSER))
+#if !defined(_KERNEL) && !defined(_FAKE_KERNEL) && !defined(_KMEMUSER)
 typedef struct lgrp_mem_policy_info { int opaque[2]; }  lgrp_mem_policy_info_t;
-#endif  /* !_KERNEL && !_KMEMUSER */
+#endif  /* !_KERNEL && !_FAKE_KERNEL && !_KMEMUSER */
 
-#if (defined(_KERNEL) || defined(_KMEMUSER))
+#if defined(_KERNEL) || defined(_FAKE_KERNEL) || defined(_KMEMUSER)
 #include <sys/cpuvar.h>
 #include <sys/bitmap.h>
 #include <sys/vnode.h>
 #include <vm/anon.h>
 #include <vm/seg.h>

@@ -629,11 +631,11 @@
 extern uint32_t         lgrp_loadavg_tolerance;
 extern uint32_t         lgrp_loadavg_max_effect;
 extern uint32_t         lgrp_load_thresh;
 extern lgrp_mem_policy_t lgrp_mem_policy_root;
 
-#endif  /* _KERNEL && _KMEMUSER */
+#endif  /* _KERNEL || _FAKE_KERNEL || _KMEMUSER */
 
 #ifdef  __cplusplus
 }
 #endif