ath: fix incorrect PPB on FCC radar type 5
[cascardo/linux.git] / mm / mincore.c
index 725c809..c8c528b 100644 (file)
@@ -137,8 +137,11 @@ static void mincore_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
                } else { /* pte is a swap entry */
                        swp_entry_t entry = pte_to_swp_entry(pte);
 
-                       if (is_migration_entry(entry)) {
-                               /* migration entries are always uptodate */
+                       if (non_swap_entry(entry)) {
+                               /*
+                                * migration or hwpoison entries are always
+                                * uptodate
+                                */
                                *vec = 1;
                        } else {
 #ifdef CONFIG_SWAP