diff options
| author | zhenwei pi <[email protected]> | 2022-05-12 20:23:09 -0700 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-05-13 07:20:19 -0700 |
| commit | c8bd84f73fd6215d5b8d0b3cfc914a3671b16d1c (patch) | |
| tree | f5d419b3dca78499e45c2cfa19a6f24c6cef89dc /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 60f272f6b09a8f14156df88cccd21447ab394452 (diff) | |
mm/memory-failure.c: simplify num_poisoned_pages_dec
Don't decrease the number of poisoned pages in page_alloc.c, let the
memory-failure.c do inc/dec poisoned pages only.
Also simplify unpoison_memory(), only decrease the number of
poisoned pages when:
- TestClearPageHWPoison() succeed
- put_page_back_buddy succeed
After decreasing, print necessary log.
Finally, remove clear_page_hwpoison() and unpoison_taken_off_page().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: zhenwei pi <[email protected]>
Acked-by: Naoya Horiguchi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions