Whamcloud - gitweb
a49a93fe280c1f47b2d378a40b79d4f126acfc72
[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 23:38:35.000000000 +0800
4 +++ linux-2.6.10/mm/truncate.c  2005-04-07 14:55:03.019979256 +0800
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/net/core/sock.c
24 ===================================================================
25 --- linux-2.6.10.orig/net/core/sock.c   2004-12-25 05:35:23.000000000 +0800
26 +++ linux-2.6.10/net/core/sock.c        2005-04-07 14:55:03.020979104 +0800
27 @@ -1359,6 +1359,7 @@
28  EXPORT_SYMBOL(sk_alloc);
29  EXPORT_SYMBOL(sk_free);
30  EXPORT_SYMBOL(sk_send_sigurg);
31 +EXPORT_SYMBOL(sock_getsockopt);
32  EXPORT_SYMBOL(sock_alloc_send_pskb);
33  EXPORT_SYMBOL(sock_alloc_send_skb);
34  EXPORT_SYMBOL(sock_init_data);
35 Index: linux-2.6.10/fs/dcache.c
36 ===================================================================
37 --- linux-2.6.10.orig/fs/dcache.c       2005-04-07 00:35:35.000000000 +0800
38 +++ linux-2.6.10/fs/dcache.c    2005-04-07 14:55:03.003981688 +0800
39 @@ -1737,6 +1737,7 @@
40  
41  EXPORT_SYMBOL(d_alloc);
42  EXPORT_SYMBOL(d_alloc_anon);
43 +EXPORT_SYMBOL(is_subdir);
44  EXPORT_SYMBOL(d_alloc_root);
45  EXPORT_SYMBOL(d_delete);
46  EXPORT_SYMBOL(d_find_alias);
47 Index: linux-2.6.10/fs/jbd/journal.c
48 ===================================================================
49 --- linux-2.6.10.orig/fs/jbd/journal.c  2004-12-25 05:34:01.000000000 +0800
50 +++ linux-2.6.10/fs/jbd/journal.c       2005-04-07 14:55:03.006981232 +0800
51 @@ -71,6 +71,7 @@
52  EXPORT_SYMBOL(journal_errno);
53  EXPORT_SYMBOL(journal_ack_err);
54  EXPORT_SYMBOL(journal_clear_err);
55 +EXPORT_SYMBOL(log_start_commit);
56  EXPORT_SYMBOL(log_wait_commit);
57  EXPORT_SYMBOL(journal_start_commit);
58  EXPORT_SYMBOL(journal_force_commit_nested);
59 Index: linux-2.6.10/fs/namespace.c
60 ===================================================================
61 --- linux-2.6.10.orig/fs/namespace.c    2005-04-07 00:35:35.000000000 +0800
62 +++ linux-2.6.10/fs/namespace.c 2005-04-07 14:55:03.007981080 +0800
63 @@ -1233,6 +1233,7 @@
64                 mntput(old_pwdmnt);
65         }
66  }
67 +EXPORT_SYMBOL(set_fs_pwd);
68  
69  static void chroot_fs_refs(struct nameidata *old_nd, struct nameidata *new_nd)
70  {
71 Index: linux-2.6.10/fs/file_table.c
72 ===================================================================
73 --- linux-2.6.10.orig/fs/file_table.c   2004-12-25 05:33:50.000000000 +0800
74 +++ linux-2.6.10/fs/file_table.c        2005-04-07 14:55:03.004981536 +0800
75 @@ -196,6 +196,7 @@
76                 file_free(file);
77         }
78  }
79 +EXPORT_SYMBOL(put_filp);
80  
81  void file_move(struct file *file, struct list_head *list)
82  {
83 Index: linux-2.6.10/kernel/sched.c
84 ===================================================================
85 --- linux-2.6.10.orig/kernel/sched.c    2005-04-07 00:35:34.000000000 +0800
86 +++ linux-2.6.10/kernel/sched.c 2005-04-07 14:55:03.018979408 +0800
87 @@ -2942,6 +2942,19 @@
88  
89  EXPORT_SYMBOL(sleep_on_timeout);
90  
91 +void fastcall __sched sleep_on(wait_queue_head_t *q)
92 +{
93 +        SLEEP_ON_VAR
94 +
95 +        current->state = TASK_UNINTERRUPTIBLE;
96 +
97 +        SLEEP_ON_HEAD
98 +        schedule();
99 +        SLEEP_ON_TAIL
100 +}
101 +
102 +EXPORT_SYMBOL(sleep_on);
103 +
104  void set_user_nice(task_t *p, long nice)
105  {
106         unsigned long flags;
107 Index: linux-2.6.10/kernel/exit.c
108 ===================================================================
109 --- linux-2.6.10.orig/kernel/exit.c     2005-04-06 23:44:29.000000000 +0800
110 +++ linux-2.6.10/kernel/exit.c  2005-04-07 14:55:03.014980016 +0800
111 @@ -246,6 +246,8 @@
112         switch_uid(INIT_USER);
113  }
114  
115 +EXPORT_SYMBOL(reparent_to_init);
116 +
117  void __set_special_pids(pid_t session, pid_t pgrp)
118  {
119         struct task_struct *curr = current;
120 @@ -427,6 +429,7 @@
121  {
122         __exit_files(tsk);
123  }
124 +EXPORT_SYMBOL(exit_files);
125  
126  static inline void __put_fs_struct(struct fs_struct *fs)
127  {
128 @@ -512,6 +515,7 @@
129  {
130         __exit_mm(tsk);
131  }
132 +EXPORT_SYMBOL(exit_mm);
133  
134  static inline void choose_new_parent(task_t *p, task_t *reaper, task_t *child_reaper)
135  {
136 Index: linux-2.6.10/include/linux/fs.h
137 ===================================================================
138 --- linux-2.6.10.orig/include/linux/fs.h        2005-04-07 14:54:24.454842048 +0800
139 +++ linux-2.6.10/include/linux/fs.h     2005-04-07 14:55:03.010980624 +0800
140 @@ -1183,6 +1183,7 @@
141  extern struct vfsmount *kern_mount(struct file_system_type *);
142  extern int may_umount_tree(struct vfsmount *);
143  extern int may_umount(struct vfsmount *);
144 +struct vfsmount *do_kern_mount(const char *type, int flags, const char *name, void *data);
145  extern long do_mount(char *, char *, char *, unsigned long, void *);
146  
147  extern int vfs_statfs(struct super_block *, struct kstatfs *);
148 Index: linux-2.6.10/include/linux/mm.h
149 ===================================================================
150 --- linux-2.6.10.orig/include/linux/mm.h        2005-04-07 00:22:23.000000000 +0800
151 +++ linux-2.6.10/include/linux/mm.h     2005-04-07 14:55:03.012980320 +0800
152 @@ -715,6 +715,9 @@
153  extern unsigned long __do_brk(unsigned long, unsigned long);
154  extern unsigned long do_brk(unsigned long, unsigned long);
155  
156 +/* truncate.c */
157 +extern void truncate_complete_page(struct address_space *mapping,struct page *);
158 +
159  /* filemap.c */
160  extern unsigned long page_unuse(struct page *);
161  extern void truncate_inode_pages(struct address_space *, loff_t);