mm: memory-failure: don't account hwpoison_filter() filtered pages
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 11 Jul 2023 05:50:11 +0000 (13:50 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:12:19 +0000 (10:12 -0700)
commit80ee7cb271b52e5861eda3c67731c95fd55a2627
tree1227b391f0e5bd7ce636b24e431a41143d6d388b
parent92a025a790f82c278cc39b0997e9b3b6f3b69ee0
mm: memory-failure: don't account hwpoison_filter() filtered pages

mf_generic_kill_procs() will return -EOPNOTSUPP when hwpoison_filter()
filtered dax page.  In that case, action_result() isn't expected to be
called to update mf_stats.  This will results in inaccurate but benign
memory failure handling statistics.

Link: https://lkml.kernel.org/r/20230711055016.2286677-4-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c