git: 3f85c51824a4 - stable/13 - swap_pager: uma_zcreate() doesn't fail
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Jan 2022 13:36:27 UTC
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=3f85c51824a4584c68bfc0aaf2a5618a618d4a3c
commit 3f85c51824a4584c68bfc0aaf2a5618a618d4a3c
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-01-11 14:22:32 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-01-18 13:36:13 +0000
swap_pager: uma_zcreate() doesn't fail
Remove always-false checks for UMA zone creation failure. No functional
change intended.
Reviewed by: alc, kib
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 43b3b8e52d642e94876728202d9b9863315c8525)
---
sys/vm/swap_pager.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 3725fc87379f..59d996492b90 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -627,12 +627,8 @@ swap_pager_swap_init(void)
vm_cnt.v_page_count / 2;
swpctrie_zone = uma_zcreate("swpctrie", pctrie_node_size(), NULL, NULL,
pctrie_zone_init, NULL, UMA_ALIGN_PTR, 0);
- if (swpctrie_zone == NULL)
- panic("failed to create swap pctrie zone.");
swblk_zone = uma_zcreate("swblk", sizeof(struct swblk), NULL, NULL,
NULL, NULL, _Alignof(struct swblk) - 1, 0);
- if (swblk_zone == NULL)
- panic("failed to create swap blk zone.");
n2 = n;
do {
if (uma_zone_reserve_kva(swblk_zone, n))