Whamcloud - gitweb
land 0.5.20.3 b_devel onto HEAD (b_devel will remain)
[fs/lustre-release.git] / lustre / kernel_patches / patches / iod-rmap-exports.patch
1 --- linux/fs/inode.c.b_io       2003-02-18 16:39:16.000000000 -0800
2 +++ linux/fs/inode.c    2003-02-18 16:39:45.000000000 -0800
3 @@ -5,6 +5,7 @@
4   */
5  
6  #include <linux/config.h>
7 +#include <linux/module.h>
8  #include <linux/fs.h>
9  #include <linux/string.h>
10  #include <linux/mm.h>
11 @@ -66,7 +67,8 @@
12   * NOTE! You also have to own the lock if you change
13   * the i_state of an inode while it is in use..
14   */
15 -static spinlock_t inode_lock = SPIN_LOCK_UNLOCKED;
16 +spinlock_t inode_lock = SPIN_LOCK_UNLOCKED;
17 +EXPORT_SYMBOL(inode_lock);
18  
19  /*
20   * Statistics gathering..
21 --- linux/fs/Makefile.b_io      2003-02-18 16:39:16.000000000 -0800
22 +++ linux/fs/Makefile   2003-02-18 16:39:37.000000000 -0800
23 @@ -7,7 +7,7 @@
24  
25  O_TARGET := fs.o
26  
27 -export-objs := filesystems.o open.o dcache.o buffer.o
28 +export-objs := filesystems.o open.o dcache.o buffer.o inode.o
29  mod-subdirs := nls
30  
31  obj-y :=       open.o read_write.o devices.o file_table.o buffer.o \
32 --- linux/mm/vmscan.c.b_io      2003-02-18 16:39:16.000000000 -0800
33 +++ linux/mm/vmscan.c   2003-02-18 16:40:01.000000000 -0800
34 @@ -14,6 +14,8 @@
35   *  Multiqueue VM started 5.8.00, Rik van Riel.
36   */
37  
38 +#include <linux/config.h>
39 +#include <linux/module.h>
40  #include <linux/slab.h>
41  #include <linux/kernel_stat.h>
42  #include <linux/swap.h>
43 @@ -837,6 +839,7 @@
44         set_current_state(TASK_RUNNING);
45         remove_wait_queue(&kswapd_done, &wait);
46  }
47 +EXPORT_SYMBOL(wakeup_kswapd);
48  
49  static void wakeup_memwaiters(void)
50  {
51 --- linux/mm/Makefile.b_io      2003-02-18 16:39:16.000000000 -0800
52 +++ linux/mm/Makefile   2003-02-18 16:39:37.000000000 -0800
53 @@ -9,7 +9,7 @@
54  
55  O_TARGET := mm.o
56  
57 -export-objs := shmem.o filemap.o memory.o page_alloc.o mempool.o
58 +export-objs := shmem.o filemap.o memory.o page_alloc.o mempool.o vmscan.o
59  
60  obj-y   := memory.o mmap.o filemap.o mprotect.o mlock.o mremap.o \
61             vmalloc.o slab.o bootmem.o swap.o vmscan.o page_io.o \
62 --- linux-chaos/mm/page_alloc.c.b_io_export     Wed Jan 29 17:00:32 2003
63 +++ linux-chaos/mm/page_alloc.c Wed Jan 29 17:01:31 2003
64 @@ -31,6 +31,7 @@
65  int nr_inactive_dirty_pages;
66  int nr_inactive_clean_pages;
67  pg_data_t *pgdat_list;
68 +EXPORT_SYMBOL(pgdat_list);
69  
70  /*
71   * The zone_table array is used to look up the address of the