compaction.c (bc3106b26cf6a6f214fd1a8538736afc39ae1b5c) compaction.c (e8b098fc5747a7c871f113c9eb65453cc2d86e6f)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/mm/compaction.c
4 *
5 * Memory compaction for the reduction of external fragmentation. Note that
6 * this heavily depends upon page migration to do all the real heavy
7 * lifting
8 *

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

571 cc->total_free_scanned += nr_scanned;
572 if (total_isolated)
573 count_compact_events(COMPACTISOLATED, total_isolated);
574 return total_isolated;
575}
576
577/**
578 * isolate_freepages_range() - isolate free pages.
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/mm/compaction.c
4 *
5 * Memory compaction for the reduction of external fragmentation. Note that
6 * this heavily depends upon page migration to do all the real heavy
7 * lifting
8 *

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

571 cc->total_free_scanned += nr_scanned;
572 if (total_isolated)
573 count_compact_events(COMPACTISOLATED, total_isolated);
574 return total_isolated;
575}
576
577/**
578 * isolate_freepages_range() - isolate free pages.
579 * @cc: Compaction control structure.
579 * @start_pfn: The first PFN to start isolating.
580 * @end_pfn: The one-past-last PFN.
581 *
582 * Non-free pages, invalid PFNs, or zone boundaries within the
583 * [start_pfn, end_pfn) range are considered errors, cause function to
584 * undo its actions and return zero.
585 *
586 * Otherwise, function returns one-past-the-last PFN of isolated page

--- 1572 unchanged lines hidden ---
580 * @start_pfn: The first PFN to start isolating.
581 * @end_pfn: The one-past-last PFN.
582 *
583 * Non-free pages, invalid PFNs, or zone boundaries within the
584 * [start_pfn, end_pfn) range are considered errors, cause function to
585 * undo its actions and return zero.
586 *
587 * Otherwise, function returns one-past-the-last PFN of isolated page

--- 1572 unchanged lines hidden ---