lkml.org 
[lkml]   [2022]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] mm/memofy-failure.c:: simplify num_poisoned_pages_dec
On Fri, Apr 29, 2022 at 10:22:04PM +0800, zhenwei pi wrote:
> Don't descrease the number of poisoned pages in page_alloc.c, let the
^^^^
decrease?

> memory-failure.c do inc/dec poisoned pages only.
>
> Also simplify unpoison_memory(), only descrease the number of
^^^^
same typo

> poisoned pages when:
> - TestClearPageHWPoison() succeed
> - put_page_back_buddy succeed
>
> After descreasing, print necessary log.
^^^^
ditto

>
> Finally, remove clear_page_hwpoison() and unpoison_taken_off_page().
>
> Cc: Wu Fengguang <fengguang.wu@intel.com>
> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>

Otherwise, the changes look good to me.

Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>

\
 
 \ /
  Last update: 2022-05-06 10:57    [W:0.080 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site