From: Steve Capper Date: Tue, 7 May 2013 13:46:03 +0000 (+0100) Subject: mm: thp: Correct the HPAGE_PMD_ORDER check. X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~40^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfa5e237e935bc6712c9ac2f52a5469a0df85bcf;p=pandora-kernel.git mm: thp: Correct the HPAGE_PMD_ORDER check. All Transparent Huge Pages are allocated by the buddy allocator. A compile time check is in place that fails when the order of a transparent huge page is too large to be allocated by the buddy allocator. Unfortunately that compile time check passes when: HPAGE_PMD_ORDER == MAX_ORDER ( which is incorrect as the buddy allocator can only allocate memory of order strictly less than MAX_ORDER. ) This patch updates the compile time check to fail in the above case. Signed-off-by: Steve Capper Acked-by: Catalin Marinas Acked-by: Andrew Morton --- Reading git-diff-tree failed