Skip to content

Commit af38e91

Browse files
committed
Revert "mm/page_alloc: Optimize __free_contig_frozen_range()"
This reverts commit 7e2e35e. Signed-off-by: Eric Naim <dnaim@cachyos.org>
1 parent 070b59d commit af38e91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mm/page_alloc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7098,7 +7098,8 @@ static int __alloc_contig_verify_gfp_mask(gfp_t gfp_mask, gfp_t *gfp_cc_mask)
70987098

70997099
static void __free_contig_frozen_range(unsigned long pfn, unsigned long nr_pages)
71007100
{
7101-
__free_contig_range_common(pfn, nr_pages, true);
7101+
for (; nr_pages--; pfn++)
7102+
free_frozen_pages(pfn_to_page(pfn), 0);
71027103
}
71037104

71047105
/**

0 commit comments

Comments
 (0)