Whamcloud - gitweb
current branches now use lnet from HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / export-2.6-fc3.patch
1 Index: linux-2.6.10/mm/truncate.c
2 ===================================================================
3 --- linux-2.6.10.orig/mm/truncate.c     2005-04-06 19:38:35.000000000 +0400
4 +++ linux-2.6.10/mm/truncate.c  2005-07-18 01:55:37.000000000 +0400
5 @@ -42,7 +42,7 @@
6   * its lock, b) when a concurrent invalidate_inode_pages got there first and
7   * c) when tmpfs swizzles a page between a tmpfs inode and swapper_space.
8   */
9 -static void
10 +void
11  truncate_complete_page(struct address_space *mapping, struct page *page)
12  {
13         if (page->mapping != mapping)
14 @@ -58,6 +58,8 @@
15         page_cache_release(page);       /* pagecache ref */
16  }
17  
18 +EXPORT_SYMBOL(truncate_complete_page);
19 +
20  /*
21   * This is for invalidate_inode_pages().  That function can be called at
22   * any time, and is not supposed to throw away dirty pages.  But pages can
23 Index: linux-2.6.10/mm/swap.c
24 ===================================================================
25 --- linux-2.6.10.orig/mm/swap.c 2004-12-25 00:34:31.000000000 +0300
26 +++ linux-2.6.10/mm/swap.c      2005-07-19 12:23:36.000000000 +0400
27 @@ -259,6 +259,8 @@
28         pagevec_reinit(pvec);
29  }
30  
31 +EXPORT_SYMBOL(__pagevec_release);
32 +
33  /*
34   * pagevec_release() for pages which are known to not be on the LRU
35   *
36 @@ -380,6 +382,8 @@
37         return pagevec_count(pvec);
38  }
39  
40 +EXPORT_SYMBOL(pagevec_lookup);
41 +
42  unsigned pagevec_lookup_tag(struct pagevec *pvec, struct address_space *mapping,
43                 pgoff_t *index, int tag, unsigned nr_pages)
44  {
45 @@ -388,6 +392,7 @@
46         return pagevec_count(pvec);
47  }
48  
49 +EXPORT_SYMBOL(pagevec_lookup_tag);
50  
51  #ifdef CONFIG_SMP
52  /*
53 Index: linux-2.6.10/net/core/sock.c
54 ===================================================================
55 --- linux-2.6.10.orig/net/core/sock.c   2004-12-25 00:35:23.000000000 +0300
56 +++ linux-2.6.10/net/core/sock.c        2005-07-18 01:55:37.000000000 +0400
57 @@ -1359,6 +1359,7 @@
58  EXPORT_SYMBOL(sk_alloc);
59  EXPORT_SYMBOL(sk_free);
60  EXPORT_SYMBOL(sk_send_sigurg);
61 +EXPORT_SYMBOL(sock_getsockopt);
62  EXPORT_SYMBOL(sock_alloc_send_pskb);
63  EXPORT_SYMBOL(sock_alloc_send_skb);
64  EXPORT_SYMBOL(sock_init_data);
65 Index: linux-2.6.10/fs/dcache.c
66 ===================================================================
67 --- linux-2.6.10.orig/fs/dcache.c       2005-07-18 01:55:36.000000000 +0400
68 +++ linux-2.6.10/fs/dcache.c    2005-07-18 01:55:37.000000000 +0400
69 @@ -1737,6 +1737,7 @@
70  
71  EXPORT_SYMBOL(d_alloc);
72  EXPORT_SYMBOL(d_alloc_anon);
73 +EXPORT_SYMBOL(is_subdir);
74  EXPORT_SYMBOL(d_alloc_root);
75  EXPORT_SYMBOL(d_delete);
76  EXPORT_SYMBOL(d_find_alias);
77 Index: linux-2.6.10/fs/jbd/journal.c
78 ===================================================================
79 --- linux-2.6.10.orig/fs/jbd/journal.c  2004-12-25 00:34:01.000000000 +0300
80 +++ linux-2.6.10/fs/jbd/journal.c       2005-07-18 01:55:37.000000000 +0400
81 @@ -71,6 +71,7 @@
82  EXPORT_SYMBOL(journal_errno);
83  EXPORT_SYMBOL(journal_ack_err);
84  EXPORT_SYMBOL(journal_clear_err);
85 +EXPORT_SYMBOL(log_start_commit);
86  EXPORT_SYMBOL(log_wait_commit);
87  EXPORT_SYMBOL(journal_start_commit);
88  EXPORT_SYMBOL(journal_force_commit_nested);
89 Index: linux-2.6.10/fs/namespace.c
90 ===================================================================
91 --- linux-2.6.10.orig/fs/namespace.c    2005-07-18 01:55:37.000000000 +0400
92 +++ linux-2.6.10/fs/namespace.c 2005-07-18 01:55:37.000000000 +0400
93 @@ -1233,6 +1233,7 @@
94                 mntput(old_pwdmnt);
95         }
96  }
97 +EXPORT_SYMBOL(set_fs_pwd);
98  
99  static void chroot_fs_refs(struct nameidata *old_nd, struct nameidata *new_nd)
100  {
101 Index: linux-2.6.10/fs/file_table.c
102 ===================================================================
103 --- linux-2.6.10.orig/fs/file_table.c   2004-12-25 00:33:50.000000000 +0300
104 +++ linux-2.6.10/fs/file_table.c        2005-07-18 01:55:37.000000000 +0400
105 @@ -196,6 +196,7 @@
106                 file_free(file);
107         }
108  }
109 +EXPORT_SYMBOL(put_filp);
110  
111  void file_move(struct file *file, struct list_head *list)
112  {
113 Index: linux-2.6.10/kernel/sched.c
114 ===================================================================
115 --- linux-2.6.10.orig/kernel/sched.c    2005-07-18 01:55:36.000000000 +0400
116 +++ linux-2.6.10/kernel/sched.c 2005-07-18 01:55:37.000000000 +0400
117 @@ -2942,6 +2942,19 @@
118  
119  EXPORT_SYMBOL(sleep_on_timeout);
120  
121 +void fastcall __sched sleep_on(wait_queue_head_t *q)
122 +{
123 +        SLEEP_ON_VAR
124 +
125 +        current->state = TASK_UNINTERRUPTIBLE;
126 +
127 +        SLEEP_ON_HEAD
128 +        schedule();
129 +        SLEEP_ON_TAIL
130 +}
131 +
132 +EXPORT_SYMBOL(sleep_on);
133 +
134  void set_user_nice(task_t *p, long nice)
135  {
136         unsigned long flags;
137 Index: linux-2.6.10/kernel/exit.c
138 ===================================================================
139 --- linux-2.6.10.orig/kernel/exit.c     2005-07-18 01:55:35.000000000 +0400
140 +++ linux-2.6.10/kernel/exit.c  2005-07-18 01:55:37.000000000 +0400
141 @@ -246,6 +246,8 @@
142         switch_uid(INIT_USER);
143  }
144  
145 +EXPORT_SYMBOL(reparent_to_init);
146 +
147  void __set_special_pids(pid_t session, pid_t pgrp)
148  {
149         struct task_struct *curr = current;
150 @@ -427,6 +429,7 @@
151  {
152         __exit_files(tsk);
153  }
154 +EXPORT_SYMBOL(exit_files);
155  
156  static inline void __put_fs_struct(struct fs_struct *fs)
157  {
158 @@ -512,6 +515,7 @@
159  {
160         __exit_mm(tsk);
161  }
162 +EXPORT_SYMBOL(exit_mm);
163  
164  static inline void choose_new_parent(task_t *p, task_t *reaper, task_t *child_reaper)
165  {
166 Index: linux-2.6.10/include/linux/fs.h
167 ===================================================================
168 --- linux-2.6.10.orig/include/linux/fs.h        2005-07-18 01:55:37.000000000 +0400
169 +++ linux-2.6.10/include/linux/fs.h     2005-07-18 01:55:37.000000000 +0400
170 @@ -1184,6 +1184,7 @@
171  extern struct vfsmount *kern_mount(struct file_system_type *);
172  extern int may_umount_tree(struct vfsmount *);
173  extern int may_umount(struct vfsmount *);
174 +struct vfsmount *do_kern_mount(const char *type, int flags, const char *name, void *data);
175  extern long do_mount(char *, char *, char *, unsigned long, void *);
176  
177  extern int vfs_statfs(struct super_block *, struct kstatfs *);
178 Index: linux-2.6.10/include/linux/mm.h
179 ===================================================================
180 --- linux-2.6.10.orig/include/linux/mm.h        2005-07-18 01:55:36.000000000 +0400
181 +++ linux-2.6.10/include/linux/mm.h     2005-07-18 01:55:37.000000000 +0400
182 @@ -715,6 +715,9 @@
183  extern unsigned long __do_brk(unsigned long, unsigned long);
184  extern unsigned long do_brk(unsigned long, unsigned long);
185  
186 +/* truncate.c */
187 +extern void truncate_complete_page(struct address_space *mapping,struct page *);
188 +
189  /* filemap.c */
190  extern unsigned long page_unuse(struct page *);
191  extern void truncate_inode_pages(struct address_space *, loff_t);
192 Index: linux-2.6.10/fs/namespace.c
193 ===================================================================
194 --- linux-2.6.10/fs/namespace.c.symbol  2005-07-28 13:16:56.000000000 -0600
195 +++ linux-2.6.10/fs/namespace.c 2005-07-28 13:17:24.000000000 -0600
196 @@ -38,6 +38,7 @@ static inline int sysfs_init(void)
197  
198  /* spinlock for vfsmount related operations, inplace of dcache_lock */
199  spinlock_t vfsmount_lock __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
200 +EXPORT_SYMBOL(vfsmount_lock);
201  
202  static struct list_head *mount_hashtable;
203  static int hash_mask, hash_bits;