]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - mm/huge_memory.c
mm: reclaim MADV_FREE pages
[mirror_ubuntu-hirsute-kernel.git] / mm / huge_memory.c
index 7309a716b7fc303e79226ea435499ffe3588eec0..08501a607b006f2efbc07a5ae3a03dd3146cf6c7 100644 (file)
@@ -1572,6 +1572,8 @@ bool madvise_free_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma,
                set_pmd_at(mm, addr, pmd, orig_pmd);
                tlb_remove_pmd_tlb_entry(tlb, pmd, addr);
        }
+
+       mark_page_lazyfree(page);
        ret = true;
 out:
        spin_unlock(ptl);