Re: [PATCH 2/2] nvdimm/pmem: Remove test_and_clear_pmem_poison()
From: Oscar Salvador (SUSE)
Date: Tue Sep 22 2026 - 00:19:22 EST
On Thu, Sep 03, 2026 at 01:35:35PM +0800, Kaitao Cheng wrote:
> From: Kaitao Cheng <chengkaitao@xxxxxxxxxx>
>
> TestClearPageHWPoison() is now defined regardless of whether
> CONFIG_MEMORY_FAILURE is enabled, returning false when memory failure
> handling is unavailable.
>
> The test_and_clear_pmem_poison() wrapper duplicates this configuration
> handling and has no other pmem-specific behavior.
>
> Call TestClearPageHWPoison() directly and remove the redundant wrapper.
> This also removes the need to include page-flags.h from pmem.h.
>
> No functional change is intended.
>
> Signed-off-by: Kaitao Cheng <chengkaitao@xxxxxxxxxx>
Nice cleanup, but as David noted, please squash patch#1 into this one.
Reviewed-by: Oscar Salvador <osalvador@xxxxxxx>
--
Oscar Salvador
SUSE Labs