]> git.baikalelectronics.ru Git - kernel.git/commit
mm: hugetlbfs: Add some VM_BUG_ON()s to catch non-hugetlbfs pages
authorDave Hansen <dave.hansen@linux.intel.com>
Tue, 21 Jan 2014 23:48:48 +0000 (15:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Jan 2014 00:19:43 +0000 (16:19 -0800)
commit72712c4598b54662ec6f554460a6ac9a640f548b
tree97f9e808e2bb6b8d5ef011ddfd70812c148f2df9
parenta2bd3d26b42b81a02729c1fc8de45ff624c2c307
mm: hugetlbfs: Add some VM_BUG_ON()s to catch non-hugetlbfs pages

Dave Jiang reported that he was seeing oopses when running NUMA systems
and default_hugepagesz=1G.  I traced the issue down to
migrate_page_copy() trying to use the same code for hugetlb pages and
transparent hugepages.  It should not have been trying to pass thp pages
in there.

So, add some VM_BUG_ON()s for the next hapless VM developer that tries
the same thing.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Tested-by: Dave Jiang <dave.jiang@intel.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/hugetlb.h