]> Gentwo Git Trees - linux/.git/commit
mm/hwpoison: decouple hwpoison_filter from mm/memory-failure.c
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 4 Sep 2025 06:22:58 +0000 (14:22 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:22:21 +0000 (14:22 -0700)
commit5ce1dbfdd8e3d4dca2f842dd833ca7e264ace85b
treec3ba2fef38bf2ea19a4598e9ed9b5e0d731beb76
parenta488ba3124c82d704963fcd760fe653df1987b13
mm/hwpoison: decouple hwpoison_filter from mm/memory-failure.c

mm/memory-failure.c defines and uses hwpoison_filter_* parameters but the
values of those parameters can only be modified via mm/hwpoison-inject.c
from userspace.  They have a potentially different life time.  Decouple
those parameters from mm/memory-failure.c to fix this broken layering.

Link: https://lkml.kernel.org/r/20250904062258.3336092-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Suggested-by: Michal Hocko <mhocko@suse.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/page.c
mm/hwpoison-inject.c
mm/internal.h
mm/memcontrol.c
mm/memory-failure.c