vm_map.c (32731f2eb1a0a315f882dc575752ec1dab6a01ff) vm_map.c (0012f373e43db2341c20329163ed2d5ad3b0f341)
1/*-
2 * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU)
3 *
4 * Copyright (c) 1991, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * The Mach Operating System project at Carnegie-Mellon University.

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

2353 */
2354 if (((flags & MAP_PREFAULT_MADVISE) != 0 &&
2355 vm_page_count_severe()) ||
2356 ((flags & MAP_PREFAULT_PARTIAL) != 0 &&
2357 tmpidx >= threshold)) {
2358 psize = tmpidx;
2359 break;
2360 }
1/*-
2 * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU)
3 *
4 * Copyright (c) 1991, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * The Mach Operating System project at Carnegie-Mellon University.

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

2353 */
2354 if (((flags & MAP_PREFAULT_MADVISE) != 0 &&
2355 vm_page_count_severe()) ||
2356 ((flags & MAP_PREFAULT_PARTIAL) != 0 &&
2357 tmpidx >= threshold)) {
2358 psize = tmpidx;
2359 break;
2360 }
2361 if (p->valid == VM_PAGE_BITS_ALL) {
2361 if (vm_page_all_valid(p)) {
2362 if (p_start == NULL) {
2363 start = addr + ptoa(tmpidx);
2364 p_start = p;
2365 }
2366 /* Jump ahead if a superpage mapping is possible. */
2367 if (p->psind > 0 && ((addr + ptoa(tmpidx)) &
2368 (pagesizes[p->psind] - 1)) == 0) {
2369 mask = atop(pagesizes[p->psind]) - 1;

--- 2562 unchanged lines hidden ---
2362 if (p_start == NULL) {
2363 start = addr + ptoa(tmpidx);
2364 p_start = p;
2365 }
2366 /* Jump ahead if a superpage mapping is possible. */
2367 if (p->psind > 0 && ((addr + ptoa(tmpidx)) &
2368 (pagesizes[p->psind] - 1)) == 0) {
2369 mask = atop(pagesizes[p->psind]) - 1;

--- 2562 unchanged lines hidden ---