diff options
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r-- | sys/vm/swap_pager.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 82b2040..f7793cd 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -1006,14 +1006,12 @@ swap_pager_getpages(object, m, count, reqpage) mreq = m[reqpage]; -#if !defined(MAX_PERF) if (mreq->object != object) { panic("swap_pager_getpages: object mismatch %p/%p", object, mreq->object ); } -#endif /* * Calculate range to retrieve. The pages have already been assigned * their swapblks. We require a *contiguous* range that falls entirely @@ -1214,14 +1212,12 @@ swap_pager_putpages(object, m, count, sync, rtvals) int i; int n = 0; -#if !defined(MAX_PERF) if (count && m[0]->object != object) { panic("swap_pager_getpages: object mismatch %p/%p", object, m[0]->object ); } -#endif /* * Step 1 * @@ -1870,25 +1866,19 @@ swp_pager_meta_free_all(vm_object_t object) for (i = 0; i < SWAP_META_PAGES; ++i) { daddr_t v = swap->swb_pages[i]; if (v != SWAPBLK_NONE) { -#if !defined(MAX_PERF) --swap->swb_count; -#endif swp_pager_freeswapspace(v, 1); } } -#if !defined(MAX_PERF) if (swap->swb_count != 0) panic("swap_pager_meta_free_all: swb_count != 0"); -#endif *pswap = swap->swb_hnext; zfree(swap_zone, swap); --object->un_pager.swp.swp_bcount; } index += SWAP_META_PAGES; -#if !defined(MAX_PERF) if (index > 0x20000000) panic("swp_pager_meta_free_all: failed to locate all swap meta blocks"); -#endif } } |