Print this page
8115 parallel zfs mount
*** 20,29 ****
--- 20,31 ----
*/
/*
* 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,51 ****
extern "C" {
#endif
#define LGRP_NONE (-1) /* non-existent lgroup ID */
! #if (!defined(_KERNEL) && !defined(_KMEMUSER))
typedef struct lgrp_mem_policy_info { int opaque[2]; } lgrp_mem_policy_info_t;
! #endif /* !_KERNEL && !_KMEMUSER */
! #if (defined(_KERNEL) || defined(_KMEMUSER))
#include <sys/cpuvar.h>
#include <sys/bitmap.h>
#include <sys/vnode.h>
#include <vm/anon.h>
#include <vm/seg.h>
--- 39,53 ----
extern "C" {
#endif
#define LGRP_NONE (-1) /* non-existent lgroup ID */
! #if !defined(_KERNEL) && !defined(_FAKE_KERNEL) && !defined(_KMEMUSER)
typedef struct lgrp_mem_policy_info { int opaque[2]; } lgrp_mem_policy_info_t;
! #endif /* !_KERNEL && !_FAKE_KERNEL && !_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,639 ****
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 */
#ifdef __cplusplus
}
#endif
--- 631,641 ----
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 || _FAKE_KERNEL || _KMEMUSER */
#ifdef __cplusplus
}
#endif