diff options
author | Linus Torvalds <[email protected]> | 2021-11-13 12:03:03 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-11-13 12:03:03 -0800 |
commit | d0b51bfb23a21de771be3fd9c32ab072c2138dbd (patch) | |
tree | 770f47b84357f3ef384863169aaae558875a6944 /tools/perf/util/trace-event-scripting.c | |
parent | a613224169f916755aadf5b97c31b122ce070a88 (diff) |
Revert "mm: shmem: don't truncate page if memory failure happens"
This reverts commit b9d02f1bdd98f38e6e5ecacc9786a8f58f3f8b2c.
The error handling of that patch was fundamentally broken, and it needs
to be entirely re-done.
For example, in shmem_write_begin() it would call shmem_getpage(), then
ignore the error return from that, and look at the page pointer contents
instead.
And in shmem_read_mapping_page_gfp(), the patch tested PageHWPoison() on
a page pointer that two lines earlier had potentially been set as an
error pointer.
These issues could be individually fixed, but when it has this many
issues, I'm just reverting it instead of waiting for fixes.
Link: https://lore.kernel.org/linux-mm/[email protected]/
Reported-by: Ajay Garg <[email protected]>
Reported-by: Jens Axboe <[email protected]>
Cc: Yang Shi <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions