Patchwork [3.5.yuz,extended,stable] Patch "x86, mm: Undo incorrect revert in arch/x86/mm/init.c" has been added to staging queue

mail settings
Submitter Herton Ronaldo Krzesinski
Date Nov. 23, 2012, 2:26 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/201333/
State New
Headers show


Herton Ronaldo Krzesinski - Nov. 23, 2012, 2:26 p.m.
This is a note to let you know that I have just added a patch titled

    x86, mm: Undo incorrect revert in arch/x86/mm/init.c

to the linux-3.5.y-queue branch of the 3.5.yuz extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.yuz tree, see



From d8f65071644ed73e9361faf11072e24dc0a054cf Mon Sep 17 00:00:00 2001
From: Yinghai Lu <>
Date: Thu, 25 Oct 2012 15:45:26 -0700
Subject: [PATCH 5/5] x86, mm: Undo incorrect revert in arch/x86/mm/init.c

commit f82f64dd9f485e13f29f369772d4a0e868e5633a upstream.


    844ab6f9 x86, mm: Find_early_table_space based on ranges that are actually being mapped

added back some lines back wrongly that has been removed in commit

    7b16bbf97 Revert "x86/mm: Fix the size calculation of mapping tables"

remove them again.

Signed-off-by: Yinghai Lu <>
Acked-by: Jacob Shin <>
Signed-off-by: H. Peter Anvin <>
Signed-off-by: Herton Ronaldo Krzesinski <>
 arch/x86/mm/init.c |    4 ----
 1 file changed, 4 deletions(-)



diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
index 5e967a3..4e4dcda 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -65,10 +65,6 @@  static void __init find_early_table_space(struct map_range *mr, int nr_range)
 #ifdef CONFIG_X86_32
 			extra += PMD_SIZE;
-			/* The first 2/4M doesn't use large pages. */
-			if (mr[i].start < PMD_SIZE)
-				extra += range;
 			ptes += (extra + PAGE_SIZE - 1) >> PAGE_SHIFT;
 		} else {
 			ptes += (range + PAGE_SIZE - 1) >> PAGE_SHIFT;