[v2,0/4] A few fixup patches for mm

Message ID 20230727115643.639741-1-linmiaohe@huawei.com
Headers
Series A few fixup patches for mm |

Message

Miaohe Lin July 27, 2023, 11:56 a.m. UTC
  Hi everyone,
This series contains a few fixup patches to fix potential unexpected
return value, fix wrong swap entry type for hwpoisoned swapcache page
and so on. More details can be found in the respective changelogs.
Thanks!

Miaohe Lin (4):
  mm/swapfile: fix wrong swap entry type for hwpoisoned swapcache page
  mm: memory-failure: fix potential unexpected return value from
    unpoison_memory()
  mm: memory-failure: avoid false hwpoison page mapped error info
  mm: memory-failure: add PageOffline() check
---
v2:
  collect Reviewed-by and Acked-by tag per Matthew and Naoya.
  1/4: a better fix per Matthew
  2/4: fix a code smell per Naoya
  Thanks!
---
 mm/ksm.c            |  2 ++
 mm/memory-failure.c | 32 ++++++++++++++++++--------------
 mm/swapfile.c       |  8 ++++----
 3 files changed, 24 insertions(+), 18 deletions(-)
  

Comments

Andrew Morton July 27, 2023, 4:57 p.m. UTC | #1
On Thu, 27 Jul 2023 19:56:39 +0800 Miaohe Lin <linmiaohe@huawei.com> wrote:

> This series contains a few fixup patches to fix potential unexpected
> return value, fix wrong swap entry type for hwpoisoned swapcache page
> and so on. More details can be found in the respective changelogs.

I'm thinking that patches 1-3 should be backported into -stable kernels.
Thoughts on this?
  
Miaohe Lin July 28, 2023, 2:20 a.m. UTC | #2
On 2023/7/28 0:57, Andrew Morton wrote:
> On Thu, 27 Jul 2023 19:56:39 +0800 Miaohe Lin <linmiaohe@huawei.com> wrote:
> 
>> This series contains a few fixup patches to fix potential unexpected
>> return value, fix wrong swap entry type for hwpoisoned swapcache page
>> and so on. More details can be found in the respective changelogs.
> 
> I'm thinking that patches 1-3 should be backported into -stable kernels.
> Thoughts on this?

I tend to backport the patches 1-3. They helps.

Thanks Andrew.