diff options
author | John Baldwin <jhb@FreeBSD.org> | 2007-02-07 17:43:11 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2007-02-07 17:43:11 +0000 |
commit | e8865caffb1a0ea61715b420fa398672dab8907a (patch) | |
tree | a754087b619a680335a655d98e288052176274c4 /sys/vm/swap_pager.c | |
parent | 78cb087e34b58be283a6fb1f368aba1de231fa2d (diff) | |
download | src-e8865caffb1a0ea61715b420fa398672dab8907a.tar.gz src-e8865caffb1a0ea61715b420fa398672dab8907a.zip |
- Move 'struct swdevt' back into swap_pager.h and expose it to userland.
- Restore support for fetching swap information from crash dumps via
kvm_get_swapinfo(3) to fix pstat -T/-s on crash dumps.
Reviewed by: arch@, phk
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=166550
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r-- | sys/vm/swap_pager.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 46f49d24967b..4167c6ba8966 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -138,37 +138,6 @@ __FBSDID("$FreeBSD$"); #define SWAP_META_PAGES (SWB_NPAGES * 2) #define SWAP_META_MASK (SWAP_META_PAGES - 1) -typedef int32_t swblk_t; /* - * swap offset. This is the type used to - * address the "virtual swap device" and - * therefore the maximum swap space is - * 2^32 pages. - */ - -struct swdevt; -typedef void sw_strategy_t(struct buf *bp, struct swdevt *sw); -typedef void sw_close_t(struct thread *td, struct swdevt *sw); - -/* - * Swap device table - */ -struct swdevt { - int sw_flags; - int sw_nblks; - int sw_used; - dev_t sw_dev; - struct vnode *sw_vp; - void *sw_id; - swblk_t sw_first; - swblk_t sw_end; - struct blist *sw_blist; - TAILQ_ENTRY(swdevt) sw_list; - sw_strategy_t *sw_strategy; - sw_close_t *sw_close; -}; - -#define SW_CLOSING 0x04 - struct swblock { struct swblock *swb_hnext; vm_object_t swb_object; |