diff options
author | alc <alc@FreeBSD.org> | 2003-02-01 21:55:30 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-02-01 21:55:30 +0000 |
commit | ec56adbe77c3b587b58c33cca608928d7974853e (patch) | |
tree | ddffe5dfc5e822e054b830fa2aba1014437964d2 | |
parent | 50ebb07c3803d33b392da40bd43a4d978d7657eb (diff) | |
download | FreeBSD-src-ec56adbe77c3b587b58c33cca608928d7974853e.zip FreeBSD-src-ec56adbe77c3b587b58c33cca608928d7974853e.tar.gz |
- Remove (some) unnecessary explicit initializations to zero.
- Style changes to vm_pageout(): declarations and white-space.
-rw-r--r-- | sys/vm/vm_pageout.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index ec759db..bb92fdd 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -137,9 +137,9 @@ SYSINIT(vmdaemon, SI_SUB_KTHREAD_VM, SI_ORDER_FIRST, kproc_start, &vm_kp) #endif -int vm_pages_needed=0; /* Event on which pageout daemon sleeps */ -int vm_pageout_deficit=0; /* Estimated number of pages deficit */ -int vm_pageout_pages_needed=0; /* flag saying that the pageout daemon needs pages */ +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 */ #if !defined(NO_SWAPPING) static int vm_pageout_req_swapout; /* XXX */ @@ -1364,7 +1364,7 @@ vm_size_t count; static void vm_pageout() { - int pass; + int error, pass, s; mtx_lock(&Giant); @@ -1431,9 +1431,7 @@ vm_pageout() * The pageout daemon is never done, so loop forever. */ while (TRUE) { - int error; - int s = splvm(); - + s = splvm(); /* * If we have enough free memory, wakeup waiters. Do * not clear vm_pages_needed until we reach our target, @@ -1473,7 +1471,6 @@ vm_pageout() continue; } } - if (vm_pages_needed) cnt.v_pdwakeups++; splx(s); |