Re: [PATCH v1] mm, hwpoison: enable error handling on shmem thp

From: Andrew Morton
Date: Tue Feb 09 2021 - 17:55:55 EST


On Tue, 9 Feb 2021 15:21:28 +0900 Naoya Horiguchi <nao.horiguchi@xxxxxxxxx> wrote:

> Currently hwpoison code checks PageAnon() for thp and refuses to handle
> errors on non-anonymous thps (just for historical reason). We now
> support non-anonymou thp like shmem one, so this patch suggests to enable
> to handle shmem thps. Fortunately, we already have can_split_huge_page()
> to check if a give thp is splittable, so this patch relies on it.

Thanks. We're at -rc7 so I think I'll park this one for 5.12-rc1,
unless it is more urgent than I believe it to be?