Index: linux-2.6.10-ck2/arch/i386/mm/init.c
===================================================================
--- linux-2.6.10-ck2.orig/arch/i386/mm/init.c	2005-01-04 09:30:48.575769696 +1100
+++ linux-2.6.10-ck2/arch/i386/mm/init.c	2005-01-04 09:31:06.055112432 +1100
@@ -41,6 +41,7 @@
 #include <asm/sections.h>
 
 unsigned int __VMALLOC_RESERVE = 128 << 20;
+EXPORT_SYMBOL(__VMALLOC_RESERVE);
 
 DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 unsigned long highstart_pfn, highend_pfn;
Index: linux-2.6.10-ck2/include/linux/pci.h
===================================================================
--- linux-2.6.10-ck2.orig/include/linux/pci.h	2005-01-04 09:30:43.194587760 +1100
+++ linux-2.6.10-ck2/include/linux/pci.h	2005-01-04 09:31:02.865597312 +1100
@@ -742,6 +742,7 @@
 				struct pci_dev *from);
 struct pci_dev *pci_get_slot (struct pci_bus *bus, unsigned int devfn);
 struct pci_dev *pci_get_class (unsigned int class, struct pci_dev *from);
+struct pci_dev *pci_find_class (unsigned int class, struct pci_dev *from);
 int pci_dev_present(const struct pci_device_id *ids);
 
 int pci_bus_read_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 *val);
@@ -907,6 +908,9 @@
 static inline struct pci_dev *pci_get_class(unsigned int class, struct pci_dev *from)
 { return NULL; }
 
+static inline struct pci_dev *pci_find_class(unsigned int class, struct pci_dev *from)
+{ return pci_get_class(class, from); }
+
 #define pci_dev_present(ids)	(0)
 #define pci_dev_put(dev)	do { } while (0)
 
Index: linux-2.6.10-ck2/mm/mmap.c
===================================================================
--- linux-2.6.10-ck2.orig/mm/mmap.c	2005-01-04 09:30:43.196587456 +1100
+++ linux-2.6.10-ck2/mm/mmap.c	2005-01-04 09:31:02.868596856 +1100
@@ -1011,7 +1011,8 @@
 	__vm_stat_account(mm, vm_flags, file, len >> PAGE_SHIFT);
 	if (vm_flags & VM_LOCKED) {
 		mm->locked_vm += len >> PAGE_SHIFT;
-		make_pages_present(addr, addr + len);
+		if (!(vm_flags & VM_IO))
+			make_pages_present(addr, addr + len);
 	}
 	if (flags & MAP_POPULATE) {
 		up_write(&mm->mmap_sem);

