From: Andrew Morton Date: Wed, 20 Feb 2013 02:14:34 +0000 (+1100) Subject: mm-memory-failurec-fix-wrong-num_poisoned_pages-in-handling-memory-error-on-thp-fix X-Git-Tag: next-20130220~1^2~482 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42e70aef115f520697f70934f13872020b7c410e;p=karo-tx-linux.git mm-memory-failurec-fix-wrong-num_poisoned_pages-in-handling-memory-error-on-thp-fix tweak comment Cc: Naoya Horiguchi Signed-off-by: Andrew Morton --- diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 9b1e5e7078a1..1a56d63adf9c 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1040,11 +1040,11 @@ int memory_failure(unsigned long pfn, int trapno, int flags) } /* - * Currently errors on hugetlbfs pages are contained in hugepage - * unit, so nr_pages should be 1 << compound_order. OTOH when - * errors are on transparent hugepages, they are supposed to be - * split and error containment is done in normal page unit. - * So nr_pages should be one in this case. + * Currently errors on hugetlbfs pages are measured in hugepage units, + * so nr_pages should be 1 << compound_order. OTOH when errors are on + * transparent hugepages, they are supposed to be split and error + * measurement is done in normal page units. So nr_pages should be one + * in this case. */ if (PageHuge(p)) nr_pages = 1 << compound_order(hpage);