page_alloc.c (7118fc2906e2925d7edb5ed9c8a57f2a5f23b849) page_alloc.c (041711ce7cdf023f53d76f64d82b75210248e18d)
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

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

3175 * that need the guarantee that every CPU has drained can disable the
3176 * optimizing racy check.
3177 */
3178static void __drain_all_pages(struct zone *zone, bool force_all_cpus)
3179{
3180 int cpu;
3181
3182 /*
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

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

3175 * that need the guarantee that every CPU has drained can disable the
3176 * optimizing racy check.
3177 */
3178static void __drain_all_pages(struct zone *zone, bool force_all_cpus)
3179{
3180 int cpu;
3181
3182 /*
3183 * Allocate in the BSS so we wont require allocation in
3183 * Allocate in the BSS so we won't require allocation in
3184 * direct reclaim path for CONFIG_CPUMASK_OFFSTACK=y
3185 */
3186 static cpumask_t cpus_with_pcps;
3187
3188 /*
3189 * Make sure nobody triggers this path before mm_percpu_wq is fully
3190 * initialized.
3191 */

--- 6238 unchanged lines hidden ---
3184 * direct reclaim path for CONFIG_CPUMASK_OFFSTACK=y
3185 */
3186 static cpumask_t cpus_with_pcps;
3187
3188 /*
3189 * Make sure nobody triggers this path before mm_percpu_wq is fully
3190 * initialized.
3191 */

--- 6238 unchanged lines hidden ---