git: 43b3b8e52d64 - main - swap_pager: uma_zcreate() doesn't fail
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Jan 2022 14:28:03 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=43b3b8e52d642e94876728202d9b9863315c8525 commit 43b3b8e52d642e94876728202d9b9863315c8525 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-01-11 14:22:32 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-01-11 14:27:45 +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 MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33809 --- 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 01cf9233329f..3b799ccbeb1d 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -633,12 +633,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))