Whamcloud - gitweb
b=4336
[fs/lustre-release.git] / lustre / kernel_patches / patches / iod-rmap-exports.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 --- linux-2.4.18-18/fs/inode.c~iod-rmap-exports Thu Apr  3 00:40:01 2003
9 +++ linux-2.4.18-18-braam/fs/inode.c    Thu Apr  3 00:40:01 2003
10 @@ -5,6 +5,7 @@
11   */
12  
13  #include <linux/config.h>
14 +#include <linux/module.h>
15  #include <linux/fs.h>
16  #include <linux/string.h>
17  #include <linux/mm.h>
18 @@ -66,7 +67,8 @@ static LIST_HEAD(anon_hash_chain); /* fo
19   * NOTE! You also have to own the lock if you change
20   * the i_state of an inode while it is in use..
21   */
22 -static spinlock_t inode_lock = SPIN_LOCK_UNLOCKED;
23 +spinlock_t inode_lock = SPIN_LOCK_UNLOCKED;
24 +EXPORT_SYMBOL(inode_lock);
25  
26  /*
27   * Statistics gathering..
28 --- linux-2.4.18-18/fs/Makefile~iod-rmap-exports        Thu Apr  3 00:40:01 2003
29 +++ linux-2.4.18-18-braam/fs/Makefile   Thu Apr  3 00:40:29 2003
30 @@ -1,3 +1,5 @@
31 +
32 +
33  #
34  # Makefile for the Linux filesystems.
35  #
36 @@ -7,7 +9,7 @@
37  
38  O_TARGET := fs.o
39  
40 -export-objs := filesystems.o open.o dcache.o buffer.o
41 +export-objs := filesystems.o open.o dcache.o buffer.o inode.o
42  mod-subdirs := nls
43  
44  obj-y :=       open.o read_write.o devices.o file_table.o buffer.o \
45 --- linux-2.4.18-18/mm/vmscan.c~iod-rmap-exports        Thu Apr  3 00:40:01 2003
46 +++ linux-2.4.18-18-braam/mm/vmscan.c   Thu Apr  3 00:40:01 2003
47 @@ -14,6 +14,8 @@
48   *  Multiqueue VM started 5.8.00, Rik van Riel.
49   */
50  
51 +#include <linux/config.h>
52 +#include <linux/module.h>
53  #include <linux/slab.h>
54  #include <linux/kernel_stat.h>
55  #include <linux/swap.h>
56 @@ -837,6 +839,7 @@ void wakeup_kswapd(unsigned int gfp_mask
57         set_current_state(TASK_RUNNING);
58         remove_wait_queue(&kswapd_done, &wait);
59  }
60 +EXPORT_SYMBOL(wakeup_kswapd);
61  
62  static void wakeup_memwaiters(void)
63  {
64 --- linux-2.4.18-18/mm/Makefile~iod-rmap-exports        Thu Apr  3 00:40:01 2003
65 +++ linux-2.4.18-18-braam/mm/Makefile   Thu Apr  3 00:40:01 2003
66 @@ -9,7 +9,7 @@
67  
68  O_TARGET := mm.o
69  
70 -export-objs := shmem.o filemap.o memory.o page_alloc.o mempool.o
71 +export-objs := shmem.o filemap.o memory.o page_alloc.o mempool.o vmscan.o
72  
73  obj-y   := memory.o mmap.o filemap.o mprotect.o mlock.o mremap.o \
74             vmalloc.o slab.o bootmem.o swap.o vmscan.o page_io.o \
75 --- linux-2.4.18-18/mm/page_alloc.c~iod-rmap-exports    Thu Apr  3 00:40:01 2003
76 +++ linux-2.4.18-18-braam/mm/page_alloc.c       Thu Apr  3 00:40:01 2003
77 @@ -31,6 +31,7 @@ int nr_active_pages;
78  int nr_inactive_dirty_pages;
79  int nr_inactive_clean_pages;
80  pg_data_t *pgdat_list;
81 +EXPORT_SYMBOL(pgdat_list);
82  
83  /*
84   * The zone_table array is used to look up the address of the
85
86 _