Print this page
8115 parallel zfs mount
*** 20,29 ****
--- 20,30 ----
*/
/*
* 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,51 ****
/*
* VM - Kernel Segment Driver
*/
! #if defined(_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 */
--- 42,52 ----
/*
* VM - Kernel Segment Driver
*/
! #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,147 ****
#define IS_KMEM_VA_LARGEPAGE(vaddr) \
(((vaddr) >= heap_lp_base) && ((vaddr) < heap_lp_end))
extern struct seg_ops segkmem_ops;
! #endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
--- 138,148 ----
#define IS_KMEM_VA_LARGEPAGE(vaddr) \
(((vaddr) >= heap_lp_base) && ((vaddr) < heap_lp_end))
extern struct seg_ops segkmem_ops;
! #endif /* _KERNEL || _FAKE_KERNEL */
#ifdef __cplusplus
}
#endif