]> 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>
Thu, 7 Feb 2013 01:26:44 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:37 +0000 (16:46 +1100)
commitb7d7f0c984e45a9429882c1fbd9dd377a275e31f
treeb973bd20544d1765ae494611dcbe4a5570437821
parentf68ffa444dec960020d2b389205672a8f9b21507
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