From: Naoya Horiguchi Date: Sat, 23 Feb 2013 00:34:05 +0000 (-0800) Subject: mm/memory-failure.c: fix wrong num_poisoned_pages in handling memory error on thp X-Git-Tag: v3.9-rc1~99^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4db0e950c5b78586bea9e1b027be849631f89a17;p=pandora-kernel.git 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). [akpm@linux-foundation.org: tweak comment] Signed-off-by: Naoya Horiguchi Cc: Andi Kleen Cc: Tony Luck Cc: Wu Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed