aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/swap_pager.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-01-03 14:30:46 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-01-03 14:30:46 +0000
commitc410df597bbcf336aed35a8be61783db2c1ebd32 (patch)
tree1d1c4afb47b6f3606e254d491ad14375a8a3f8bd /sys/vm/swap_pager.h
parent3ccbf2d533f5cfed977fb82b7c1f04c23dcafc85 (diff)
downloadsrc-c410df597bbcf336aed35a8be61783db2c1ebd32.tar.gz
src-c410df597bbcf336aed35a8be61783db2c1ebd32.zip
Avoid extern decls in .c files by putting them in the vm/swap_pager.h
include file where they belong. Share the dmmax_mask variable.
Notes
Notes: svn path=/head/; revision=108600
Diffstat (limited to 'sys/vm/swap_pager.h')
-rw-r--r--sys/vm/swap_pager.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h
index 48ddf0011f29..23fc08508846 100644
--- a/sys/vm/swap_pager.h
+++ b/sys/vm/swap_pager.h
@@ -84,6 +84,15 @@ extern int swap_pager_full;
extern struct blist *swapblist;
extern struct uma_zone *swap_zone;
extern int nswap_lowat, nswap_hiwat;
+extern int dmmax, dmmax_mask;
+extern struct vnode *swapdev_vp;
+extern struct swdevt *swdevt;
+extern int nswdev;
+/*
+ * vm_swap_size is in page-sized chunks now. It was DEV_BSIZE'd chunks
+ * in the old system.
+ */
+extern int vm_swap_size; /* number of free swap blocks, in pages */
void swap_pager_putpages(vm_object_t, vm_page_t *, int, boolean_t, int *);
boolean_t swap_pager_haspage(vm_object_t object, vm_pindex_t pindex, int *before, int *after);