page_alloc.c (202e35db5e719ee8af6028183403f475e243f82d) | page_alloc.c (06dac2f467fe9269a433aa5056dd2ee1d20475e9) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/mm/page_alloc.c 4 * 5 * Manages the free list, the system allocates free pages here. 6 * Note that kmalloc() lives in slab.c 7 * 8 * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds --- 4190 unchanged lines hidden (view full) --- 4199 noreclaim_flag = memalloc_noreclaim_save(); 4200 4201 *compact_result = try_to_compact_pages(gfp_mask, order, alloc_flags, ac, 4202 prio, &page); 4203 4204 memalloc_noreclaim_restore(noreclaim_flag); 4205 psi_memstall_leave(&pflags); 4206 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/mm/page_alloc.c 4 * 5 * Manages the free list, the system allocates free pages here. 6 * Note that kmalloc() lives in slab.c 7 * 8 * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds --- 4190 unchanged lines hidden (view full) --- 4199 noreclaim_flag = memalloc_noreclaim_save(); 4200 4201 *compact_result = try_to_compact_pages(gfp_mask, order, alloc_flags, ac, 4202 prio, &page); 4203 4204 memalloc_noreclaim_restore(noreclaim_flag); 4205 psi_memstall_leave(&pflags); 4206 |
4207 if (*compact_result == COMPACT_SKIPPED) 4208 return NULL; |
|
4207 /* 4208 * At least in one zone compaction wasn't deferred or skipped, so let's 4209 * count a compaction stall 4210 */ 4211 count_vm_event(COMPACTSTALL); 4212 4213 /* Prep a captured page if available */ 4214 if (page) --- 4957 unchanged lines hidden --- | 4209 /* 4210 * At least in one zone compaction wasn't deferred or skipped, so let's 4211 * count a compaction stall 4212 */ 4213 count_vm_event(COMPACTSTALL); 4214 4215 /* Prep a captured page if available */ 4216 if (page) --- 4957 unchanged lines hidden --- |