]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/memory-failure.c: fix wrong num_poisoned_pages in handling memory error on thp
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Wed, 20 Feb 2013 02:14:33 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:42 +0000 (16:52 +1100)
commit14b8f1615b7657a6d0f76e23d9891fb5272c45b4
tree3c67e5779704023c907f95cb026446ab57097b12
parentcf45371cfce566fbe2cdab4972c04e3c2c18570e
mm/memory-failure.c: fix wrong num_poisoned_pages in handling memory error on thp

num_poisoned_pages counts up the number of pages isolated by memory
errors.  But for thp, only one subpage is isolated because memory error
handler splits it, so it's wrong to add (1 << compound_trans_order).

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c