]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-memory-failurec-fix-wrong-num_poisoned_pages-in-handling-memory-error-on-thp-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Feb 2013 01:26:45 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:37 +0000 (16:46 +1100)
tweak comment

Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c

index 9b1e5e7078a1f6bcb0bd8fb08d0a1b0593c908a0..1a56d63adf9c642eed15e5d9e276060e2f01a933 100644 (file)
@@ -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);