aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vmmeter.h
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2016-05-20 04:43:56 +0000
committerMark Johnston <markj@FreeBSD.org>2016-05-20 04:43:56 +0000
commit0f1d791d96a10ca3a681775d64d36fd5c4e296db (patch)
tree4880baa6d20cdcc4f67d20a8e151706a7c38f525 /sys/sys/vmmeter.h
parent99db58eff1ae99b4135517912c68fdcf30c91ade (diff)
downloadsrc-0f1d791d96a10ca3a681775d64d36fd5c4e296db.tar.gz
src-0f1d791d96a10ca3a681775d64d36fd5c4e296db.zip
Fix the style of the paging target predicates.
Discussed with: alc, kib MFC after: 1 week
Notes
Notes: svn path=/head/; revision=300261
Diffstat (limited to 'sys/sys/vmmeter.h')
-rw-r--r--sys/sys/vmmeter.h43
1 files changed, 19 insertions, 24 deletions
diff --git a/sys/sys/vmmeter.h b/sys/sys/vmmeter.h
index b7cbb1147bd5..9ff29032e632 100644
--- a/sys/sys/vmmeter.h
+++ b/sys/sys/vmmeter.h
@@ -125,13 +125,12 @@ extern int vm_pageout_wakeup_thresh;
* This routine is typically used at the user<->system interface to determine
* whether we need to block in order to avoid a low memory deadlock.
*/
-
-static __inline
-int
+static inline int
vm_page_count_severe(void)
{
- return (vm_cnt.v_free_severe > (vm_cnt.v_free_count +
- vm_cnt.v_cache_count));
+
+ return (vm_cnt.v_free_severe > vm_cnt.v_free_count +
+ vm_cnt.v_cache_count);
}
/*
@@ -143,50 +142,46 @@ vm_page_count_severe(void)
* to wake waiters up, and when (after making a pass) to become more
* desperate.
*/
-
-static __inline
-int
+static inline int
vm_page_count_min(void)
{
- return (vm_cnt.v_free_min > (vm_cnt.v_free_count + vm_cnt.v_cache_count));
+
+ return (vm_cnt.v_free_min > vm_cnt.v_free_count + vm_cnt.v_cache_count);
}
/*
* Return TRUE if we have not reached our free page target during
* free page recovery operations.
*/
-
-static __inline
-int
+static inline int
vm_page_count_target(void)
{
- return (vm_cnt.v_free_target > (vm_cnt.v_free_count +
- vm_cnt.v_cache_count));
+
+ return (vm_cnt.v_free_target > vm_cnt.v_free_count +
+ vm_cnt.v_cache_count);
}
/*
* Return the number of pages we need to free-up or cache
* A positive number indicates that we do not have enough free pages.
*/
-
-static __inline
-int
+static inline int
vm_paging_target(void)
{
- return (vm_cnt.v_free_target - (vm_cnt.v_free_count +
- vm_cnt.v_cache_count));
+
+ return (vm_cnt.v_free_target - (vm_cnt.v_free_count +
+ vm_cnt.v_cache_count));
}
/*
* Returns TRUE if the pagedaemon needs to be woken up.
*/
-
-static __inline
-int
+static inline int
vm_paging_needed(void)
{
- return (vm_cnt.v_free_count + vm_cnt.v_cache_count <
- (u_int)vm_pageout_wakeup_thresh);
+
+ return (vm_cnt.v_free_count + vm_cnt.v_cache_count <
+ (u_int)vm_pageout_wakeup_thresh);
}
#endif