WIP: update tizen_qemu_defconfig
[platform/kernel/linux-starfive.git] / mm / rmap.c
index 2ec925e..7da2d8d 100644 (file)
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1623,7 +1623,7 @@ static bool try_to_unmap_one(struct folio *folio, struct vm_area_struct *vma,
                /* Update high watermark before we lower rss */
                update_hiwater_rss(mm);
 
-               if (PageHWPoison(subpage) && !(flags & TTU_IGNORE_HWPOISON)) {
+               if (PageHWPoison(subpage) && (flags & TTU_HWPOISON)) {
                        pteval = swp_entry_to_pte(make_hwpoison_entry(subpage));
                        if (folio_test_hugetlb(folio)) {
                                hugetlb_count_sub(folio_nr_pages(folio), mm);