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
This commit is contained in:
parent
94f4afd772
commit
43b3b8e52d
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user