diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-08-18 15:00:16 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-09-12 05:25:58 +0200 |
commit | e9ff3ba7ff10490a92792faf1d3573a24fc6e5c9 (patch) | |
tree | 2777337b97a3175abe6d4cc410b0411b179b0aa1 /CREDITS | |
parent | mm, hwpoison: kill procs if unmap fails (diff) | |
download | linux-e9ff3ba7ff10490a92792faf1d3573a24fc6e5c9.tar.xz linux-e9ff3ba7ff10490a92792faf1d3573a24fc6e5c9.zip |
mm, hwpoison: avoid trying to unpoison reserved page
For reserved pages, HWPoison flag will be set without increasing the page
refcnt. So we shouldn't even try to unpoison these pages and thus
decrease the page refcnt unexpectly. Add a PageReserved() check to filter
this case out and remove the below unneeded zero page (zero page is
reserved) check.
Link: https://lkml.kernel.org/r/20220818130016.45313-7-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions