diff options
| author | Miaohe Lin <[email protected]> | 2022-08-18 21:00:16 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-11 20:25:58 -0700 |
| commit | e9ff3ba7ff10490a92792faf1d3573a24fc6e5c9 (patch) | |
| tree | 2777337b97a3175abe6d4cc410b0411b179b0aa1 /tools/perf/scripts/python/libxed.py | |
| parent | 0792a4a6195a6d67a4ead2554da393cbd8dcdf5a (diff) | |
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/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Acked-by: Naoya Horiguchi <[email protected]>
Cc: "Aneesh Kumar K.V" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions