Reduce the scope of a variable to the only file where it is used.
This commit is contained in:
parent
0a71c082d2
commit
bc7275964c
@ -149,6 +149,8 @@ static int sysctl_vm_page_blacklist(SYSCTL_HANDLER_ARGS);
|
||||
SYSCTL_PROC(_vm, OID_AUTO, page_blacklist, CTLTYPE_STRING | CTLFLAG_RD |
|
||||
CTLFLAG_MPSAFE, NULL, 0, sysctl_vm_page_blacklist, "A", "Blacklist pages");
|
||||
|
||||
/* Is the page daemon waiting for free pages? */
|
||||
static int vm_pageout_pages_needed;
|
||||
|
||||
static uma_zone_t fakepg_zone;
|
||||
|
||||
|
@ -157,7 +157,6 @@ SYSINIT(vmdaemon, SI_SUB_KTHREAD_VM, SI_ORDER_FIRST, kproc_start, &vm_kp);
|
||||
|
||||
int vm_pages_needed; /* Event on which pageout daemon sleeps */
|
||||
int vm_pageout_deficit; /* Estimated number of pages deficit */
|
||||
int vm_pageout_pages_needed; /* flag saying that the pageout daemon needs pages */
|
||||
int vm_pageout_wakeup_thresh;
|
||||
|
||||
#if !defined(NO_SWAPPING)
|
||||
|
@ -73,7 +73,6 @@
|
||||
|
||||
extern int vm_page_max_wired;
|
||||
extern int vm_pages_needed; /* should be some "event" structure */
|
||||
extern int vm_pageout_pages_needed;
|
||||
extern int vm_pageout_deficit;
|
||||
extern int vm_pageout_page_count;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user