]> git.baikalelectronics.ru Git - kernel.git/commit
hwpoison: fix hugetlbfs/thp precheck in hwpoison_user_mappings()
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Wed, 30 Jul 2014 23:08:28 +0000 (16:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 31 Jul 2014 00:16:13 +0000 (17:16 -0700)
commite0a11da51ff28e7f7b01f1c741c20488dd9522df
tree8090414d47460b63abcc563fee37013cc9f6c530
parentb29d70dcdb18e3c35ab429c7446e694bd7d5e2c6
hwpoison: fix hugetlbfs/thp precheck in hwpoison_user_mappings()

A recent fix from Chen Yucong, commit 38467d86fc3c ("hwpoison: fix the
handling path of the victimized page frame that belong to non-LRU")
rejects going into unmapping operation for hugetlbfs/thp pages, which
results in failing error containing on such pages.  This patch fixes it.

With this patch, hwpoison functional tests in mce-test testsuite pass.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Chen Yucong <slaoub@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory-failure.c