]> git.pld-linux.org Git - packages/kernel.git/blame - linux-2.4.6-nohighmem.patch
9cdd694a797623b3d0f76ee69304dd85 linux-loop-hvr-2.4.16.0.patch
[packages/kernel.git] / linux-2.4.6-nohighmem.patch
CommitLineData
95e83f51
JR
1--- linux/mm/highmem.c.org Sat Jul 7 19:46:23 2001
2+++ linux/mm/highmem.c Sat Jul 7 19:51:03 2001
3@@ -254,6 +254,13 @@
4
5 static __init int init_emergency_pool(void)
6 {
7+ struct sysinfo i;
8+ si_meminfo(&i);
9+ si_swapinfo(&i);
10+
11+ if (!i.totalhigh)
12+ return;
13+
14 spin_lock_irq(&emergency_lock);
15 while (nr_emergency_pages < POOL_SIZE) {
16 struct page * page = alloc_page(GFP_ATOMIC);
This page took 0.046796 seconds and 4 git commands to generate.