Liu Shixin fd783c9a20 mm/memory-failure: fix an incorrect use of tail pages
When backport commit c79c5a0a00a9 to 4.19-stable, there is a mistake change.
The head page instead of tail page should be passed to try_to_unmap(),
otherwise unmap will failed as follows.

 Memory failure: 0x121c10: failed to unmap page (mapcount=1)
 Memory failure: 0x121c10: recovery action for unmapping failed page: Ignored

Fixes: c6f50413f2aa ("mm/memory-failure: check the mapcount of the precise page")
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 27f83f1cacba82afa4c9697e3ec3abb15e92ec82)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
2024-05-30 09:00:40 +00:00
..
2018-02-22 15:42:24 +01:00
2018-02-22 15:42:24 +01:00
2020-04-02 16:34:20 +02:00
2021-03-07 11:27:46 +01:00
2019-10-11 18:18:34 +02:00
2018-12-01 09:42:54 +01:00