From: WANG Cong Date: Mon, 5 Mar 2012 23:05:13 +0000 (-0800) Subject: x86/mm: Fix the size calculation of mapping tables X-Git-Tag: v3.5-rc1~124^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=722bc6b16771ed80871e1fd81c86d3627dda2ac8;p=pandora-kernel.git x86/mm: Fix the size calculation of mapping tables For machines that enable PSE, the first 2/4M memory region still uses 4K pages, so needs more PTEs in this case, but find_early_table_space() doesn't count this. This patch fixes it. The bug was found via code review, no misbehavior of the kernel was observed. Signed-off-by: WANG Cong Cc: Yinghai Lu Cc: Tejun Heo Cc: Signed-off-by: Andrew Morton Link: http://lkml.kernel.org/n/tip-kq6a00qe33h7c7ais2xsywnh@git.kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed