Miaohe Lin 357670f79e mm/memory-failure.c: rework the try_to_unmap logic in hwpoison_user_mappings()
Only for hugetlb pages in shared mappings, try_to_unmap should take
semaphore in write mode here.  Rework the code to make it clear.

Link: https://lkml.kernel.org/r/20220218090118.1105-7-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-03-22 15:57:07 -07:00
..
2021-05-07 00:26:35 -07:00
2021-05-05 11:27:24 -07:00
2021-05-05 11:27:24 -07:00
2022-03-22 15:57:01 -07:00
2022-03-22 15:57:02 -07:00
2021-11-25 10:13:56 -08:00
2022-01-15 16:30:28 +02:00
2022-01-22 08:33:38 +02:00
2021-06-05 20:43:15 +00:00
2022-01-23 06:20:44 +02:00
2021-05-07 00:26:35 -07:00
2021-04-16 16:10:37 -07:00
2022-03-22 15:57:01 -07:00
2022-03-22 15:57:03 -07:00
2022-03-22 15:57:03 -07:00
2022-03-22 15:57:03 -07:00
2022-03-22 15:57:03 -07:00
2022-01-22 08:33:38 +02:00
2022-01-15 16:30:31 +02:00