aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vmmeter.h
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2016-07-20 00:09:22 +0000
committerMark Johnston <markj@FreeBSD.org>2016-07-20 00:09:22 +0000
commit20c58db95a4ea12e5c6daf2a34cbbc57b764ed3a (patch)
tree9768dca87b96e034193a6356bbfa0b6abd2698b7 /sys/sys/vmmeter.h
parent359c502af5a3ae43ef17628526a7ebe115eafc43 (diff)
downloadsrc-20c58db95a4ea12e5c6daf2a34cbbc57b764ed3a.tar.gz
src-20c58db95a4ea12e5c6daf2a34cbbc57b764ed3a.zip
Make vm_pageout_wakeup_thresh a u_int rather than an int.
It's a threshold for v_free_count, which is of type u_int. This also lets us get rid of a cast in vm_paging_needed(). Reviewed by: alc MFC after: 1 week
Notes
Notes: svn path=/head/; revision=303052
Diffstat (limited to 'sys/sys/vmmeter.h')
-rw-r--r--sys/sys/vmmeter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/vmmeter.h b/sys/sys/vmmeter.h
index 55d3053ab0c2..39f03d0d7075 100644
--- a/sys/sys/vmmeter.h
+++ b/sys/sys/vmmeter.h
@@ -117,7 +117,7 @@ struct vmmeter {
extern struct vmmeter vm_cnt;
-extern int vm_pageout_wakeup_thresh;
+extern u_int vm_pageout_wakeup_thresh;
/*
* Return TRUE if we are under our severe low-free-pages threshold
@@ -181,7 +181,7 @@ vm_paging_needed(void)
{
return (vm_cnt.v_free_count + vm_cnt.v_cache_count <
- (u_int)vm_pageout_wakeup_thresh);
+ vm_pageout_wakeup_thresh);
}
#endif