Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/seg_kmem.h
          +++ new/usr/src/uts/common/vm/seg_kmem.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   * Copyright 2016 Joyent, Inc.
       25 + * Copyright 2017 RackTop Systems.
  25   26   */
  26   27  
  27   28  #ifndef _VM_SEG_KMEM_H
  28   29  #define _VM_SEG_KMEM_H
  29   30  
  30   31  
  31   32  #ifdef  __cplusplus
  32   33  extern "C" {
  33   34  #endif
  34   35  
↓ open down ↓ 1 lines elided ↑ open up ↑
  36   37  #include <sys/vnode.h>
  37   38  #include <sys/vmem.h>
  38   39  #include <vm/as.h>
  39   40  #include <vm/seg.h>
  40   41  #include <vm/page.h>
  41   42  
  42   43  /*
  43   44   * VM - Kernel Segment Driver
  44   45   */
  45   46  
  46      -#if defined(_KERNEL)
       47 +#if defined(_KERNEL) || defined(_FAKE_KERNEL)
  47   48  
  48   49  extern char *kernelheap;        /* start of primary kernel heap */
  49   50  extern char *ekernelheap;       /* end of primary kernel heap */
  50   51  extern char *heap_lp_base;      /* start of kernel large page heap arena */
  51   52  extern char *heap_lp_end;       /* end of kernel large page heap arena */
  52   53  extern struct seg kvseg;        /* primary kernel heap segment */
  53   54  extern struct seg kvseg_core;   /* "core" kernel heap segment */
  54   55  extern struct seg kzioseg;      /* Segment for zio mappings */
  55   56  extern vmem_t *heap_lp_arena;   /* kernel large page heap arena */
  56   57  extern vmem_t *heap_arena;      /* primary kernel heap arena */
↓ open down ↓ 75 lines elided ↑ open up ↑
 132  133  extern size_t   segkmem_heaplp_quantum;
 133  134  extern size_t   segkmem_kmemlp_max;
 134  135  
 135  136  #define SEGKMEM_USE_LARGEPAGES (segkmem_lpsize > PAGESIZE)
 136  137  
 137  138  #define IS_KMEM_VA_LARGEPAGE(vaddr)                                     \
 138  139          (((vaddr) >= heap_lp_base) && ((vaddr) < heap_lp_end))
 139  140  
 140  141  extern struct seg_ops segkmem_ops;
 141  142  
 142      -#endif  /* _KERNEL */
      143 +#endif  /* _KERNEL || _FAKE_KERNEL */
 143  144  
 144  145  #ifdef  __cplusplus
 145  146  }
 146  147  #endif
 147  148  
 148  149  #endif  /* _VM_SEG_KMEM_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX