Print this page
8115 parallel zfs mount

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

@@ -41,11 +42,11 @@
 
 /*
  * VM - Kernel Segment Driver
  */
 
-#if defined(_KERNEL)
+#if defined(_KERNEL) || defined(_FAKE_KERNEL)
 
 extern char *kernelheap;        /* start of primary kernel heap */
 extern char *ekernelheap;       /* end of primary kernel heap */
 extern char *heap_lp_base;      /* start of kernel large page heap arena */
 extern char *heap_lp_end;       /* end of kernel large page heap arena */

@@ -137,11 +138,11 @@
 #define IS_KMEM_VA_LARGEPAGE(vaddr)                                     \
         (((vaddr) >= heap_lp_base) && ((vaddr) < heap_lp_end))
 
 extern struct seg_ops segkmem_ops;
 
-#endif  /* _KERNEL */
+#endif  /* _KERNEL || _FAKE_KERNEL */
 
 #ifdef  __cplusplus
 }
 #endif