diff options
author | Naoya Horiguchi <[email protected]> | 2016-01-15 16:57:46 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-01-15 17:56:32 -0800 |
commit | 98fd1ef4241ce0c700a174dd3e33c643b4774690 (patch) | |
tree | 1ace006ae24580bcdb8424f46a11e28c7397aa77 /tools/perf/scripts/python/Perf-Trace-Util | |
parent | acc14dc4bd484f1fc8c227dd9fc2a1e592312d2b (diff) |
mm: soft-offline: exit with failure for non anonymous thp
Currently memory_failure() doesn't handle non anonymous thp case,
because we can hardly expect the error handling to be successful, and it
can just hit some corner case which results in BUG_ON or something
severe like that. This is also the case for soft offline code, so let's
make it in the same way.
Orignal code has a MF_COUNT_INCREASED check before put_hwpoison_page(),
but it's unnecessary because get_any_page() is already called when
running on this code, which takes a refcount of the target page
regardress of the flag. So this patch also removes it.
[[email protected]: fix build]
Signed-off-by: Naoya Horiguchi <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions