From 42e70aef115f520697f70934f13872020b7c410e Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Feb 2013 13:14:34 +1100 Subject: [PATCH] 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 --- mm/memory-failure.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.39.5