1 *** ./select.c.bak Sun Apr 30 13:00:38 2000
2 --- /usr/src/linux/fs/select.c Mon May 1 18:00:15 2000
8 #include <linux/malloc.h>
9 + #include <linux/vmalloc.h>
10 #include <linux/smp_lock.h>
11 #include <linux/poll.h>
12 #include <linux/file.h>
17 size = nfds * sizeof(struct pollfd);
18 ! fds = (struct pollfd *) kmalloc(size, GFP_KERNEL);
25 size = nfds * sizeof(struct pollfd);
26 ! if (size > PAGE_SIZE)
27 ! fds = (struct pollfd *) vmalloc(size);
29 ! fds = (struct pollfd *) kmalloc(size, GFP_KERNEL);
41 free_wait(wait_table);
46 ! if (size > PAGE_SIZE)
52 free_wait(wait_table);