fs/Makefile | 4 +++- fs/inode.c | 4 +++- mm/Makefile | 2 +- mm/page_alloc.c | 1 + mm/vmscan.c | 3 +++ 5 files changed, 11 insertions(+), 3 deletions(-) Index: linux-2.4.21-chaos/fs/inode.c =================================================================== --- linux-2.4.21-chaos.orig/fs/inode.c 2003-12-12 16:18:06.000000000 +0300 +++ linux-2.4.21-chaos/fs/inode.c 2003-12-12 16:18:08.000000000 +0300 @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -69,7 +70,8 @@ * NOTE! You also have to own the lock if you change * the i_state of an inode while it is in use.. */ -static spinlock_t inode_lock = SPIN_LOCK_UNLOCKED; +spinlock_t inode_lock = SPIN_LOCK_UNLOCKED; +EXPORT_SYMBOL(inode_lock); /* * Statistics gathering.. Index: linux-2.4.21-chaos/fs/Makefile =================================================================== --- linux-2.4.21-chaos.orig/fs/Makefile 2003-07-15 04:41:00.000000000 +0400 +++ linux-2.4.21-chaos/fs/Makefile 2003-12-12 16:18:08.000000000 +0300 @@ -1,3 +1,5 @@ + + # # Makefile for the Linux filesystems. # @@ -7,7 +9,7 @@ O_TARGET := fs.o -export-objs := filesystems.o open.o dcache.o buffer.o dquot.o dcookies.o +export-objs := filesystems.o open.o dcache.o buffer.o dquot.o dcookies.o inode.o mod-subdirs := nls obj-y := open.o read_write.o devices.o file_table.o buffer.o \ Index: linux-2.4.21-chaos/mm/vmscan.c =================================================================== --- linux-2.4.21-chaos.orig/mm/vmscan.c 2003-12-05 07:55:51.000000000 +0300 +++ linux-2.4.21-chaos/mm/vmscan.c 2003-12-12 16:18:08.000000000 +0300 @@ -15,6 +15,8 @@ * O(1) rmap vm, Arjan van de ven */ +#include +#include #include #include #include @@ -1210,6 +1212,7 @@ set_current_state(TASK_RUNNING); remove_wait_queue(&kswapd_done, &wait); } +EXPORT_SYMBOL(wakeup_kswapd); static void wakeup_memwaiters(void) { Index: linux-2.4.21-chaos/mm/Makefile =================================================================== --- linux-2.4.21-chaos.orig/mm/Makefile 2003-07-15 04:41:42.000000000 +0400 +++ linux-2.4.21-chaos/mm/Makefile 2003-12-12 16:18:08.000000000 +0300 @@ -9,7 +9,7 @@ O_TARGET := mm.o -export-objs := shmem.o filemap.o memory.o page_alloc.o mempool.o usercopy.o +export-objs := shmem.o filemap.o memory.o page_alloc.o mempool.o usercopy.o vmscan.o obj-y := memory.o mmap.o filemap.o mprotect.o mlock.o mremap.o \ vmalloc.o slab.o bootmem.o swap.o vmscan.o page_io.o \ Index: linux-2.4.21-chaos/mm/page_alloc.c =================================================================== --- linux-2.4.21-chaos.orig/mm/page_alloc.c 2003-12-05 07:55:51.000000000 +0300 +++ linux-2.4.21-chaos/mm/page_alloc.c 2003-12-12 16:18:08.000000000 +0300 @@ -27,6 +27,7 @@ int nr_swap_pages; pg_data_t *pgdat_list; +EXPORT_SYMBOL(pgdat_list); /* *