Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/lgrp.h
          +++ new/usr/src/uts/common/sys/lgrp.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  /*
  23   23   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
       25 + *
       26 + * Copyright 2017 RackTop Systems.
  25   27   */
  26   28  
  27   29  #ifndef _LGRP_H
  28   30  #define _LGRP_H
  29   31  
  30   32  /*
  31   33   * locality group definitions for kernel
  32   34   */
  33   35  
  34   36  #include <sys/types.h>
  35   37  
  36   38  #ifdef  __cplusplus
  37   39  extern "C" {
  38   40  #endif
  39   41  
  40   42  #define LGRP_NONE       (-1)            /* non-existent lgroup ID */
  41   43  
  42      -#if (!defined(_KERNEL) && !defined(_KMEMUSER))
       44 +#if !defined(_KERNEL) && !defined(_FAKE_KERNEL) && !defined(_KMEMUSER)
  43   45  typedef struct lgrp_mem_policy_info { int opaque[2]; }  lgrp_mem_policy_info_t;
  44      -#endif  /* !_KERNEL && !_KMEMUSER */
       46 +#endif  /* !_KERNEL && !_FAKE_KERNEL && !_KMEMUSER */
  45   47  
  46      -#if (defined(_KERNEL) || defined(_KMEMUSER))
       48 +#if defined(_KERNEL) || defined(_FAKE_KERNEL) || defined(_KMEMUSER)
  47   49  #include <sys/cpuvar.h>
  48   50  #include <sys/bitmap.h>
  49   51  #include <sys/vnode.h>
  50   52  #include <vm/anon.h>
  51   53  #include <vm/seg.h>
  52   54  #include <sys/lgrp_user.h>
  53   55  #include <sys/param.h>
  54   56  
  55   57  typedef uint32_t        lgrp_load_t;    /* lgrp_loadavg type */
  56   58  typedef uintptr_t       lgrp_handle_t;  /* lgrp handle */
↓ open down ↓ 567 lines elided ↑ open up ↑
 624  626  lgrp_handle_t   lgrp_plat_root_hand(void);
 625  627  
 626  628  extern uint32_t         lgrp_expand_proc_thresh;
 627  629  extern uint32_t         lgrp_expand_proc_diff;
 628  630  extern pgcnt_t          lgrp_mem_free_thresh;
 629  631  extern uint32_t         lgrp_loadavg_tolerance;
 630  632  extern uint32_t         lgrp_loadavg_max_effect;
 631  633  extern uint32_t         lgrp_load_thresh;
 632  634  extern lgrp_mem_policy_t lgrp_mem_policy_root;
 633  635  
 634      -#endif  /* _KERNEL && _KMEMUSER */
      636 +#endif  /* _KERNEL || _FAKE_KERNEL || _KMEMUSER */
 635  637  
 636  638  #ifdef  __cplusplus
 637  639  }
 638  640  #endif
 639  641  
 640  642  #endif /* _LGRP_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX