vm_radix.c (5748b897da441d1f10e1fe0c39155ea33d6d383a) vm_radix.c (44f1c916109d4d88941d257b7c4c96c26ab55477)
1/*
2 * Copyright (c) 2013 EMC Corp.
3 * Copyright (c) 2011 Jeffrey Roberson <jeff@freebsd.org>
4 * Copyright (c) 2008 Mayur Shardul <mayur.shardul@gmail.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 284 unchanged lines hidden (view full) ---

293vm_radix_reserve_kva(void *arg __unused)
294{
295
296 /*
297 * Calculate the number of reserved nodes, discounting the pages that
298 * are needed to store them.
299 */
300 if (!uma_zone_reserve_kva(vm_radix_node_zone,
1/*
2 * Copyright (c) 2013 EMC Corp.
3 * Copyright (c) 2011 Jeffrey Roberson <jeff@freebsd.org>
4 * Copyright (c) 2008 Mayur Shardul <mayur.shardul@gmail.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 284 unchanged lines hidden (view full) ---

293vm_radix_reserve_kva(void *arg __unused)
294{
295
296 /*
297 * Calculate the number of reserved nodes, discounting the pages that
298 * are needed to store them.
299 */
300 if (!uma_zone_reserve_kva(vm_radix_node_zone,
301 ((vm_paddr_t)cnt.v_page_count * PAGE_SIZE) / (PAGE_SIZE +
301 ((vm_paddr_t)vm_cnt.v_page_count * PAGE_SIZE) / (PAGE_SIZE +
302 sizeof(struct vm_radix_node))))
303 panic("%s: unable to reserve KVA", __func__);
304}
305SYSINIT(vm_radix_reserve_kva, SI_SUB_KMEM, SI_ORDER_SECOND,
306 vm_radix_reserve_kva, NULL);
307#endif
308
309/*

--- 547 unchanged lines hidden ---
302 sizeof(struct vm_radix_node))))
303 panic("%s: unable to reserve KVA", __func__);
304}
305SYSINIT(vm_radix_reserve_kva, SI_SUB_KMEM, SI_ORDER_SECOND,
306 vm_radix_reserve_kva, NULL);
307#endif
308
309/*

--- 547 unchanged lines hidden ---