]> 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>
Wed, 20 Feb 2013 02:14:34 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:42 +0000 (16:52 +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);