Define needfree
This commit is contained in:
parent
2b88beb74f
commit
bb9cfc6cc3
|
@ -38,6 +38,7 @@ extern vmem_t *zio_alloc_arena; /* arena for zio caches */
|
||||||
#define freemem nr_free_pages() // Expensive on linux,
|
#define freemem nr_free_pages() // Expensive on linux,
|
||||||
// cheap on solaris
|
// cheap on solaris
|
||||||
#define minfree 0
|
#define minfree 0
|
||||||
|
#define needfree 0 /* # of needed pages */
|
||||||
#define ptob(pages) (pages * PAGE_SIZE)
|
#define ptob(pages) (pages * PAGE_SIZE)
|
||||||
#define membar_producer() smp_wmb()
|
#define membar_producer() smp_wmb()
|
||||||
|
|
||||||
|
@ -93,10 +94,6 @@ copyinstr(const void *from, void *to, size_t len, size_t *done)
|
||||||
* processes but not yet allocated */
|
* processes but not yet allocated */
|
||||||
#define deficit 0
|
#define deficit 0
|
||||||
|
|
||||||
/* A guess as to how many page are needed to satisfy
|
|
||||||
* stalled page creation requests */
|
|
||||||
#define needfree 0
|
|
||||||
|
|
||||||
/* A bootlean the controls the setting of deficit */
|
/* A bootlean the controls the setting of deficit */
|
||||||
#define desperate
|
#define desperate
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue