diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2012-03-06 00:05:13 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-03-06 09:38:26 +0100 |
commit | 722bc6b16771ed80871e1fd81c86d3627dda2ac8 (patch) | |
tree | cfad3c8a90d44a548603c28fb9387bd2021f7a34 /block/scsi_ioctl.c | |
parent | Merge tag 'mmc-fixes-for-3.3' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff) | |
download | linux-722bc6b16771ed80871e1fd81c86d3627dda2ac8.tar.xz linux-722bc6b16771ed80871e1fd81c86d3627dda2ac8.zip |
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 <xiyou.wangcong@gmail.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: <ianfang.cn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/n/tip-kq6a00qe33h7c7ais2xsywnh@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'block/scsi_ioctl.c')
0 files changed, 0 insertions, 0 deletions