Thread (3 messages) 3 messages, 3 authors, 2011-10-04
STALE5397d

[PATCH] ARM: mm: Align bank start to MAX_ORDER_NR_PAGES

From: Johan Palsson <hidden>
Date: 2011-09-28 08:32:28
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

The VM subsystem assumes that there are valid memmap entries from
the bank start aligned to MAX_ORDER_NR_PAGES.

Cc: stable at kernel.org
Cc: Russell King <redacted>
Cc: Michael Bohan <redacted>
Cc: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Johan Palsson <redacted>
Signed-off-by: Rabin Vincent <redacted>
Signed-off-by: Linus Walleij <redacted>
---
 arch/arm/mm/init.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index cc7e2d8..f8037ba 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -496,6 +496,13 @@ static void __init free_unused_memmap(struct meminfo *mi)
 		 */
 		bank_start = min(bank_start,
 				 ALIGN(prev_bank_end, PAGES_PER_SECTION));
+#else
+		/*
+		 * Align down here since the VM subsystem insists that the
+		 * memmap entries are valid from the bank start aligned to
+		 * MAX_ORDER_NR_PAGES.
+		 */
+		bank_start = round_down(bank_start, MAX_ORDER_NR_PAGES);
 #endif
 		/*
 		 * If we had a previous bank, and there is a space
-- 
1.7.3.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help