From beeee29a162012b97d873cdcc669615830702cfb Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:22:53 +0100 Subject: [PATCH] Revert "mm/swapfile: skip HugeTLB pages for unuse_vma" This reverts commit e8eb8b10a3da36e2f80915dd1819e99818f6bfa5. --- mm/swapfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/swapfile.c b/mm/swapfile.c index e3d1662b8..62c95b719 100755 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -2158,7 +2158,7 @@ static int unuse_mm(struct mm_struct *mm, unsigned int type, mmap_read_lock(mm); for (vma = mm->mmap; vma; vma = vma->vm_next) { - if (vma->anon_vma && !is_vm_hugetlb_page(vma)) { + if (vma->anon_vma) { ret = unuse_vma(vma, type, frontswap, fs_pages_to_unuse); if (ret)