aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_phys.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_phys.h')
-rw-r--r--sys/vm/vm_phys.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_phys.h b/sys/vm/vm_phys.h
index ef0a95e4933f..4a08be7a42d1 100644
--- a/sys/vm/vm_phys.h
+++ b/sys/vm/vm_phys.h
@@ -112,13 +112,13 @@ vm_phys_domain(vm_page_t m)
#endif
}
-static inline void
+static inline u_int
vm_phys_freecnt_adj(vm_page_t m, int adj)
{
mtx_assert(&vm_page_queue_free_mtx, MA_OWNED);
- vm_cnt.v_free_count += adj;
vm_phys_domain(m)->vmd_free_count += adj;
+ return (vm_cnt.v_free_count += adj);
}
#endif /* _KERNEL */