mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
SPL additions to increase support for updated ZFS build
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@110 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
parent
56f9245330
commit
6ab69573ff
4
include/sys/buf.h
Normal file
4
include/sys/buf.h
Normal file
@ -0,0 +1,4 @@
|
||||
#ifndef _SPL_BUF_H
|
||||
#define _SPL_BUF_H
|
||||
|
||||
#endif /* SPL_BUF_H */
|
4
include/sys/dumphdr.h
Normal file
4
include/sys/dumphdr.h
Normal file
@ -0,0 +1,4 @@
|
||||
#ifndef _SPL_DUMPHDR_H
|
||||
#define _SPL_DUMPHDR_H
|
||||
|
||||
#endif /* SPL_DUMPHDR_H */
|
@ -24,7 +24,7 @@ extern "C" {
|
||||
#define KM_SLEEP GFP_KERNEL
|
||||
#define KM_NOSLEEP GFP_ATOMIC
|
||||
#undef KM_PANIC /* No linux analog */
|
||||
#define KM_PUSHPAGE (GFP_KERNEL | GFP_HIGH)
|
||||
#define KM_PUSHPAGE (GFP_KERNEL | __GFP_HIGH)
|
||||
#define KM_VMFLAGS GFP_LEVEL_MASK
|
||||
#define KM_FLAGS __GFP_BITS_MASK
|
||||
|
||||
|
@ -146,6 +146,17 @@ typedef struct modldrv {
|
||||
#define getmajor(x) (x)
|
||||
#define ddi_driver_major(di) getmajor(di->di_dev)
|
||||
|
||||
#define DDI_DEV_T_NONE ((dev_t)-1)
|
||||
#define DDI_DEV_T_ANY ((dev_t)-2)
|
||||
#define DDI_MAJOR_T_UNKNOWN ((major_t)0)
|
||||
|
||||
#define DDI_PROP_DONTPASS 0x0001
|
||||
#define DDI_PROP_CANSLEEP 0x0002
|
||||
|
||||
#define ddi_prop_lookup_string(x1,x2,x3,x4,x5) (*x5 = NULL)
|
||||
#define ddi_prop_free(x) (void)0
|
||||
#define ddi_root_node() (void)0
|
||||
|
||||
#define mod_install(x) 0
|
||||
#define mod_remove(x) 0
|
||||
|
||||
|
@ -2,12 +2,16 @@
|
||||
#define _SPL_VMSYSTM_H
|
||||
|
||||
#include <linux/mm.h>
|
||||
#include <linux/swap.h>
|
||||
#include <sys/types.h>
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
extern vmem_t *zio_alloc_arena; /* arena for zio caches */
|
||||
|
||||
#define physmem num_physpages
|
||||
#define freemem nr_free_pages() /* Expensive on linux,
|
||||
cheap on solaris */
|
||||
#define minfree 0
|
||||
#define ptob(pages) (pages * PAGE_SIZE)
|
||||
#define membar_producer() smp_wmb()
|
||||
|
||||
@ -56,9 +60,6 @@ copyinstr(const void *from, void *to, size_t len, size_t *done)
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* The approximate total number of free pages */
|
||||
#define freemem 0
|
||||
|
||||
/* The average number of free pages over the last 5 seconds */
|
||||
#define avefree 0
|
||||
|
||||
@ -81,10 +82,6 @@ copyinstr(const void *from, void *to, size_t len, size_t *done)
|
||||
|
||||
/* When free memory is above this limit, swapping is not performed */
|
||||
#define desfree 0
|
||||
|
||||
/* Threshold for many low memory tests, e.g. swapping is
|
||||
* more active below this limit */
|
||||
#define minfree 0
|
||||
#endif
|
||||
|
||||
#endif /* SPL_VMSYSTM_H */
|
||||
|
Loading…
Reference in New Issue
Block a user