Re: [PATCH] mm/hwpoison: dissolve error hugepages of file mapping

From: Matthew Wilcox
Date: Thu Jul 15 2021 - 11:23:53 EST


On Thu, Jul 15, 2021 at 11:08:52PM +0800, Bin Wang wrote:
> We handle error on hugetlb file with hugetlbfs_error_remove_page(),
> which removes the error hugepages from page cache. And with the
> HWPoison flag in head page, it is safe to free the error hugepages
> and dissolve it.

How is that safe? If you're going to dissolve the huge page, you
need to figure out which subpage needs to have the HWPoison flag set.