Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / iod-rmap-exports-2.4.21-chaos.patch
1  fs/Makefile     |    4 +++-
2  fs/inode.c      |    4 +++-
3  mm/Makefile     |    2 +-
4  mm/page_alloc.c |    1 +
5  mm/vmscan.c     |    3 +++
6  5 files changed, 11 insertions(+), 3 deletions(-)
7
8 Index: linux-2.4.21-chaos/fs/inode.c
9 ===================================================================
10 --- linux-2.4.21-chaos.orig/fs/inode.c  2003-12-12 16:18:06.000000000 +0300
11 +++ linux-2.4.21-chaos/fs/inode.c       2003-12-12 16:18:08.000000000 +0300
12 @@ -5,6 +5,7 @@
13   */
14  
15  #include <linux/config.h>
16 +#include <linux/module.h>
17  #include <linux/fs.h>
18  #include <linux/string.h>
19  #include <linux/mm.h>
20 @@ -69,7 +70,8 @@
21   * NOTE! You also have to own the lock if you change
22   * the i_state of an inode while it is in use..
23   */
24 -static spinlock_t inode_lock = SPIN_LOCK_UNLOCKED;
25 +spinlock_t inode_lock = SPIN_LOCK_UNLOCKED;
26 +EXPORT_SYMBOL(inode_lock);
27  
28  /*
29   * Statistics gathering..
30 Index: linux-2.4.21-chaos/fs/Makefile
31 ===================================================================
32 --- linux-2.4.21-chaos.orig/fs/Makefile 2003-07-15 04:41:00.000000000 +0400
33 +++ linux-2.4.21-chaos/fs/Makefile      2003-12-12 16:18:08.000000000 +0300
34 @@ -1,3 +1,5 @@
35 +
36 +
37  #
38  # Makefile for the Linux filesystems.
39  #
40 @@ -7,7 +9,7 @@
41  
42  O_TARGET := fs.o
43  
44 -export-objs := filesystems.o open.o dcache.o buffer.o dquot.o dcookies.o
45 +export-objs := filesystems.o open.o dcache.o buffer.o dquot.o dcookies.o inode.o
46  mod-subdirs := nls
47  
48  obj-y :=       open.o read_write.o devices.o file_table.o buffer.o \
49 Index: linux-2.4.21-chaos/mm/vmscan.c
50 ===================================================================
51 --- linux-2.4.21-chaos.orig/mm/vmscan.c 2003-12-05 07:55:51.000000000 +0300
52 +++ linux-2.4.21-chaos/mm/vmscan.c      2003-12-12 16:18:08.000000000 +0300
53 @@ -15,6 +15,8 @@
54   *  O(1) rmap vm, Arjan van de ven <arjanv@redhat.com>
55   */
56  
57 +#include <linux/config.h>
58 +#include <linux/module.h>
59  #include <linux/slab.h>
60  #include <linux/kernel_stat.h>
61  #include <linux/swap.h>
62 @@ -1210,6 +1212,7 @@
63         set_current_state(TASK_RUNNING);
64         remove_wait_queue(&kswapd_done, &wait);
65  }
66 +EXPORT_SYMBOL(wakeup_kswapd);
67  
68  static void wakeup_memwaiters(void)
69  {
70 Index: linux-2.4.21-chaos/mm/Makefile
71 ===================================================================
72 --- linux-2.4.21-chaos.orig/mm/Makefile 2003-07-15 04:41:42.000000000 +0400
73 +++ linux-2.4.21-chaos/mm/Makefile      2003-12-12 16:18:08.000000000 +0300
74 @@ -9,7 +9,7 @@
75  
76  O_TARGET := mm.o
77  
78 -export-objs := shmem.o filemap.o memory.o page_alloc.o mempool.o usercopy.o
79 +export-objs := shmem.o filemap.o memory.o page_alloc.o mempool.o usercopy.o vmscan.o
80  
81  obj-y   := memory.o mmap.o filemap.o mprotect.o mlock.o mremap.o \
82             vmalloc.o slab.o bootmem.o swap.o vmscan.o page_io.o \
83 Index: linux-2.4.21-chaos/mm/page_alloc.c
84 ===================================================================
85 --- linux-2.4.21-chaos.orig/mm/page_alloc.c     2003-12-05 07:55:51.000000000 +0300
86 +++ linux-2.4.21-chaos/mm/page_alloc.c  2003-12-12 16:18:08.000000000 +0300
87 @@ -27,6 +27,7 @@
88  
89  int nr_swap_pages;
90  pg_data_t *pgdat_list;
91 +EXPORT_SYMBOL(pgdat_list);
92  
93  /*
94   *