]>
Commit | Line | Data |
---|---|---|
a713518f | 1 | #ifndef _SPL_VMSYSTM_H |
2 | #define _SPL_VMSYSTM_H | |
3 | ||
4 | #include <linux/mm.h> | |
af828292 | 5 | #include <sys/types.h> |
6 | ||
7 | extern vmem_t *zio_alloc_arena; /* arena for zio caches */ | |
a713518f | 8 | |
9 | #define physmem num_physpages | |
77b1fe8f | 10 | #define ptob(pages) (pages * PAGE_SIZE) |
11 | #define membar_producer() smp_wmb() | |
12 | ||
2f5d55aa | 13 | #define copyin(from, to, size) copy_from_user(to, from, size) |
14 | #define copyout(from, to, size) copy_to_user(to, from, size) | |
15 | ||
77b1fe8f | 16 | #if 0 |
17 | /* The approximate total number of free pages */ | |
18 | #define freemem 0 | |
19 | ||
20 | /* The average number of free pages over the last 5 seconds */ | |
21 | #define avefree 0 | |
22 | ||
23 | /* The average number of free pages over the last 30 seconds */ | |
24 | #define avefree30 0 | |
25 | ||
26 | /* A guess as to how much memory has been promised to | |
27 | * processes but not yet allocated */ | |
28 | #define deficit 0 | |
29 | ||
30 | /* A guess as to how many page are needed to satisfy | |
31 | * stalled page creation requests */ | |
32 | #define needfree 0 | |
33 | ||
34 | /* A bootlean the controls the setting of deficit */ | |
35 | #define desperate | |
36 | ||
37 | /* When free memory is above this limit, no paging or swapping is done */ | |
38 | #define lotsfree 0 | |
39 | ||
40 | /* When free memory is above this limit, swapping is not performed */ | |
41 | #define desfree 0 | |
42 | ||
43 | /* Threshold for many low memory tests, e.g. swapping is | |
44 | * more active below this limit */ | |
45 | #define minfree 0 | |
46 | #endif | |
a713518f | 47 | |
48 | #endif /* SPL_VMSYSTM_H */ |