Whamcloud - gitweb
b=3244
[fs/lustre-release.git] / lustre / kernel_patches / patches / export_symbols-2.6.12.patch
1 Index: linux-2.6.12-rc6/fs/filesystems.c
2 ===================================================================
3 --- linux-2.6.12-rc6.orig/fs/filesystems.c      2005-06-06 17:22:29.000000000 +0200
4 +++ linux-2.6.12-rc6/fs/filesystems.c   2005-06-14 15:53:58.298522852 +0200
5 @@ -28,7 +28,9 @@
6   */
7  
8  static struct file_system_type *file_systems;
9 -static DEFINE_RWLOCK(file_systems_lock);
10 +DEFINE_RWLOCK(file_systems_lock);
11 +
12 +EXPORT_SYMBOL(file_systems_lock);
13  
14  /* WARNING: This can be used only if we _already_ own a reference */
15  void get_filesystem(struct file_system_type *fs)
16 Index: linux-2.6.12-rc6/include/linux/fs.h
17 ===================================================================
18 --- linux-2.6.12-rc6.orig/include/linux/fs.h    2005-06-14 15:53:18.356140529 +0200
19 +++ linux-2.6.12-rc6/include/linux/fs.h 2005-06-14 15:53:58.309265039 +0200
20 @@ -1563,6 +1563,7 @@
21  
22  extern struct file_operations generic_ro_fops;
23  
24 +extern rwlock_t file_systems_lock;
25  #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m))
26  
27  extern int vfs_readlink(struct dentry *, char __user *, int, const char *);
28 Index: linux-2.6.12-rc6/fs/namespace.c
29 ===================================================================
30 --- linux-2.6.12-rc6.orig/fs/namespace.c        2005-06-14 15:53:17.868835847 +0200
31 +++ linux-2.6.12-rc6/fs/namespace.c     2005-06-14 15:53:58.361022851 +0200
32 @@ -1240,6 +1240,7 @@
33                 mntput(old_pwdmnt);
34         }
35  }
36 +EXPORT_SYMBOL(set_fs_pwd);
37  
38  static void chroot_fs_refs(struct nameidata *old_nd, struct nameidata *new_nd)
39  {
40 Index: linux-2.6.12.5/kernel/exit.c
41 ===================================================================
42 --- linux-2.6.12.5.orig/kernel/exit.c   2005-08-17 17:51:28.000000000 +0200
43 +++ linux-2.6.12.5/kernel/exit.c        2005-08-17 17:51:44.000000000 +0200
44 @@ -250,6 +250,8 @@
45         switch_uid(INIT_USER);
46  }
47  
48 +EXPORT_SYMBOL(reparent_to_init);
49 +
50  void __set_special_pids(pid_t session, pid_t pgrp)
51  {
52         struct task_struct *curr = current;
53 Index: linux-2.6.12-rc6/fs/dcache.c
54 ===================================================================
55 --- linux-2.6.12-rc6.orig/fs/dcache.c   2005-06-14 15:53:19.812195198 +0200
56 +++ linux-2.6.12-rc6/fs/dcache.c        2005-06-14 15:53:58.385436913 +0200
57 @@ -1581,6 +1581,7 @@
58  
59         return result;
60  }
61 +EXPORT_SYMBOL(is_subdir);
62  
63  void d_genocide(struct dentry *root)
64  {