Thread (20 messages) 20 messages, 2 authors, 2013-05-24

[PATCH 05/11] mm: thp: Correct the HPAGE_PMD_ORDER check.

From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2013-05-24 11:18:59
Also in: linux-arch, linux-mm

On Thu, May 23, 2013 at 06:07:52PM +0100, Steve Capper wrote:
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 <redacted>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help