]>
Commit | Line | Data |
---|---|---|
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); |