]> www.infradead.org Git - users/jedix/linux-maple.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>
Fri, 12 Sep 2025 00:25:51 +0000 (17:25 -0700)
commitc15128bfe0cdea18f8f666e536dd6bb7eabfeccb
tree2a0967e41dd6a95a43a04c557deb430125b792e9
parentfe1a50b2e39a83f90e19bc5058ba27f92854d4c1
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