The patch titled Subject: mm: mincore: add hwpoison page handle has been added to the -mm tree. Its filename is mm-mincore-add-hwpoison-page-handle.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-mincore-add-hwpoison-page-handle.patch echo and later at echo http://ozlabs.org/~akpm/mmotm/broken-out/mm-mincore-add-hwpoison-page-handle.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Weijie Yang <weijie.yang@xxxxxxxxxxx> Subject: mm: mincore: add hwpoison page handle When the encountered pte is a swap entry, the current code handles two cases: migration and normal swapentry, but we have a third case: hwpoison page. This patch adds hwpoison page handle, consider hwpoison page incore as same as migration. Signed-off-by: Weijie Yang <weijie.yang@xxxxxxxxxxx> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Cc: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mincore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN mm/mincore.c~mm-mincore-add-hwpoison-page-handle mm/mincore.c --- a/mm/mincore.c~mm-mincore-add-hwpoison-page-handle +++ a/mm/mincore.c @@ -137,8 +137,8 @@ static void mincore_pte_range(struct vm_ } 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 _ Patches currently in -mm which might be from weijie.yang@xxxxxxxxxxx are zram-avoid-kunmap_atomic-a-null-pointer.patch mm-page_isolation-check-pfn-validity-before-access.patch mm-mincore-add-hwpoison-page-handle.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html