summaryrefslogtreecommitdiffstats
path: root/sys/vm/swap_pager.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-18 10:02:44 +0000
committerphk <phk@FreeBSD.org>2003-07-18 10:02:44 +0000
commit84f9cb2fa862e169a92c4dc14584dda3a33c2a89 (patch)
treed4e0d4baf3e4f8d65b30a99c80b2f713c2bed695 /sys/vm/swap_pager.h
parentc3bef15976318d124c37b2d1d4bd58f99ea2f33e (diff)
downloadFreeBSD-src-84f9cb2fa862e169a92c4dc14584dda3a33c2a89.zip
FreeBSD-src-84f9cb2fa862e169a92c4dc14584dda3a33c2a89.tar.gz
Merge swap_pager.c and vm_swap.c into swap_pager.c, the separation
is not natural and needlessly exposes a lot of dirty laundry. Move private interfaces between the two from swap_pager.h to swap_pager.c and staticize as much as possible. No functional change.
Diffstat (limited to 'sys/vm/swap_pager.h')
-rw-r--r--sys/vm/swap_pager.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h
index 7c698e5..4d965a1 100644
--- a/sys/vm/swap_pager.h
+++ b/sys/vm/swap_pager.h
@@ -92,42 +92,16 @@ struct swdevt {
#define SWAP_META_PAGES (SWB_NPAGES * 2)
#define SWAP_META_MASK (SWAP_META_PAGES - 1)
-struct swblock {
- struct swblock *swb_hnext;
- vm_object_t swb_object;
- vm_pindex_t swb_index;
- int swb_count;
- daddr_t swb_pages[SWAP_META_PAGES];
-};
-
-extern struct pagerlst swap_pager_un_object_list;
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 */
+extern int vm_swap_size;
void swap_pager_putpages(vm_object_t, vm_page_t *, int, boolean_t, int *);
-void swap_pager_swapoff(int devidx, int *sw_used);
-
void swap_pager_copy(vm_object_t, vm_object_t, vm_pindex_t, int);
void swap_pager_freespace(vm_object_t, vm_pindex_t, vm_size_t);
void swap_pager_swap_init(void);
int swap_pager_isswapped(vm_object_t, int);
int swap_pager_reserve(vm_object_t, vm_pindex_t, vm_size_t);
-/*
- * newswap functions
- */
-
-
#endif /* _KERNEL */
#endif /* _VM_SWAP_PAGER_H_ */
OpenPOWER on IntegriCloud