Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6abf6551 authored by Jan Beulich's avatar Jan Beulich Committed by Ingo Molnar
Browse files

x86, 32-bit: Fix double accounting in reserve_top_address()



With VMALLOC_END included in the calculation of MAXMEM (as of
2.6.28) it is no longer correct to also bump __VMALLOC_RESERVE
in reserve_top_address(). Doing so results in needlessly small
lowmem.

Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
LKML-Reference: <4A71DD2A020000780000D482@vpn.id2.novell.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent d8c7eb34
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -329,7 +329,6 @@ void __init reserve_top_address(unsigned long reserve)
	printk(KERN_INFO "Reserving virtual address space above 0x%08x\n",
	printk(KERN_INFO "Reserving virtual address space above 0x%08x\n",
	       (int)-reserve);
	       (int)-reserve);
	__FIXADDR_TOP = -reserve - PAGE_SIZE;
	__FIXADDR_TOP = -reserve - PAGE_SIZE;
	__VMALLOC_RESERVE += reserve;
#endif
#endif
}
}