aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-08-30 20:35:59 +0800
committerAndrew Morton <akpm@linux-foundation.org>2022-09-26 19:46:03 -0700
commit2fe62e222680e1d6ff7112cad5bcccdc858d020d (patch)
tree7248160bb10e8a2ed176b81b286acde6a5e551fe /mm
parentmm: MADV_COLLAPSE: refetch vm_end after reacquiring mmap_lock (diff)
downloadlinux-dev-2fe62e222680e1d6ff7112cad5bcccdc858d020d.tar.xz
linux-dev-2fe62e222680e1d6ff7112cad5bcccdc858d020d.zip
mm, hwpoison: use ClearPageHWPoison() in memory_failure()
Patch series "A few cleanup patches for memory-failure". his series contains a few cleanup patches to use __PageMovable() to detect non-lru movable pages, use num_poisoned_pages_sub() to reduce multiple atomic ops overheads and so on. More details can be found in the respective changelogs. This patch (of 6): Use ClearPageHWPoison() instead of TestClearPageHWPoison() to clear page hwpoison flags to avoid unneeded full memory barrier overhead. Link: https://lkml.kernel.org/r/20220830123604.25763-1-linmiaohe@huawei.com Link: https://lkml.kernel.org/r/20220830123604.25763-2-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>
Diffstat (limited to 'mm')
-rw-r--r--mm/memory-failure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index 265378237c22..3fb3cd834c8e 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -2131,7 +2131,7 @@ try_again:
page_flags = p->flags;
if (hwpoison_filter(p)) {
- TestClearPageHWPoison(p);
+ ClearPageHWPoison(p);
unlock_page(p);
put_page(p);
res = -EOPNOTSUPP;