Re: [PATCH v4 1/2] mm/memory-failure: fix missing ->mf_stats count in hugetlb poison

From: Andrew Morton

Date: Tue Jan 13 2026 - 18:22:54 EST


On Tue, 13 Jan 2026 01:07:50 -0700 Jane Chu <jane.chu@xxxxxxxxxx> wrote:

> When a newly poisoned subpage ends up in an already poisoned hugetlb
> folio, 'num_poisoned_pages' is incremented, but the per node ->mf_stats
> is not. Fix the inconsistency by designating action_result() to update
> them both.
>
> While at it, define __get_huge_page_for_hwpoison() return values in terms
> of symbol names for better readibility. Also rename
> folio_set_hugetlb_hwpoison() to hugetlb_update_hwpoison() since the
> function does more than the conventional bit setting and the fact
> three possible return values are expected.

Thanks. This looks rather different from the previous version so I
moved it to the tail of the mm-hotfixes queue for additional
test/review time.