Revert "mm/swapfile: skip HugeTLB pages for unuse_vma"

This reverts commit e8eb8b10a3.
This commit is contained in:
Ksawlii 2024-11-24 00:22:53 +01:00
parent bfa37c9cf0
commit beeee29a16

View file

@ -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)