Re: [PATCH 3/3 -v2] Fix the wrong corrupted page information ofhugetlb page.

From: Naoya Horiguchi
Date: Fri Jan 21 2011 - 04:58:23 EST


On Fri, Jan 21, 2011 at 05:17:36PM +0900, Jin Dongming wrote:
> When more than on tail page of the same mapped hugetlb page are
> poisoned at the same time, the sum of corrupted page should be
> the size of one hugetlb page(512 pages). But HardwareCorrupted
> information in /proc/meminfo is 1024 pages or more.
>
> That is because when the above condition happened,
> __memory_failure() will be called many times and pages in hugetlb
> page are accounted more than one time.
>
> This patch fixed it by incrementing the number of corrupted page
> one by one.
>
> -v2 fix checking for "just unpoisoned".
>
> Signed-off-by: Jin Dongming <jin.dongming@xxxxxxxxxxxxxxxxxx>
> Reviewed-by: Hidetoshi Seto <seto.hidetoshi@xxxxxxxxxxxxxx>

Reviewed-by: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/