summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2011-01-01 16:59:05 +0000
committerbrucec <brucec@FreeBSD.org>2011-01-01 16:59:05 +0000
commit688b83a0a69ecf424430666f5ad5834f0e012017 (patch)
tree247384b19637f979d7c6514c7961468a4bc22e6d /sys
parent3487ce2142ebad8aa3e9da94c0ddab802eea3875 (diff)
downloadFreeBSD-src-688b83a0a69ecf424430666f5ad5834f0e012017.zip
FreeBSD-src-688b83a0a69ecf424430666f5ad5834f0e012017.tar.gz
There can be more than 0x20000000 swap meta blocks allocated if a swap-backed
md(4) device is used. Don't panic when deallocating such a device if swap has been used. PR: kern/133170 Discussed with: kib MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/swap_pager.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 35a6df5..be0d42e 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -1679,8 +1679,6 @@ swap_pager_isswapped(vm_object_t object, struct swdevt *sp)
}
}
index += SWAP_META_PAGES;
- if (index > 0x20000000)
- panic("swap_pager_isswapped: failed to locate all swap meta blocks");
}
mtx_unlock(&swhash_mtx);
return (0);
@@ -1995,8 +1993,6 @@ swp_pager_meta_free_all(vm_object_t object)
}
mtx_unlock(&swhash_mtx);
index += SWAP_META_PAGES;
- if (index > 0x20000000)
- panic("swp_pager_meta_free_all: failed to locate all swap meta blocks");
}
}
OpenPOWER on IntegriCloud