Whamcloud - gitweb
b=3244
[fs/lustre-release.git] / lustre / kernel_patches / patches / export_symbols-2.6-rhel4.patch
1 Index: linux-2.6.9-5.0.3.EL/fs/filesystems.c
2 ===================================================================
3 --- linux-2.6.9-5.0.3.EL.orig/fs/filesystems.c  2005-02-26 13:24:35.467813664 +0200
4 +++ linux-2.6.9-5.0.3.EL/fs/filesystems.c       2005-02-26 13:53:13.794588288 +0200
5 @@ -27,7 +27,9 @@
6   */
7  
8  static struct file_system_type *file_systems;
9 -static rwlock_t file_systems_lock = RW_LOCK_UNLOCKED;
10 +rwlock_t file_systems_lock = RW_LOCK_UNLOCKED;
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.9-5.0.3.EL/include/linux/fs.h
17 ===================================================================
18 --- linux-2.6.9-5.0.3.EL.orig/include/linux/fs.h        2005-02-26 13:47:37.330738568 +0200
19 +++ linux-2.6.9-5.0.3.EL/include/linux/fs.h     2005-02-26 13:53:13.796587984 +0200
20 @@ -1529,6 +1529,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.9-5.0.3.EL/include/linux/ext2_fs_sb.h
29 ===================================================================
30 --- linux-2.6.9-5.0.3.EL.orig/include/linux/ext2_fs_sb.h        2005-02-26 13:24:35.470813208 +0200
31 +++ linux-2.6.9-5.0.3.EL/include/linux/ext2_fs_sb.h     2005-02-26 13:53:13.797587832 +0200
32 @@ -16,9 +16,11 @@
33  #ifndef _LINUX_EXT2_FS_SB
34  #define _LINUX_EXT2_FS_SB
35  
36 +#ifndef EXT_INCLUDE
37 +#define EXT_INCLUDE
38  #include <linux/blockgroup_lock.h>
39  #include <linux/percpu_counter.h>
40 -
41 +#endif
42  /*
43   * second extended-fs super-block data in memory
44   */
45 Index: linux-2.6.9-5.0.3.EL/fs/namespace.c
46 ===================================================================
47 --- linux-2.6.9-5.0.3.EL.orig/fs/namespace.c    2005-02-26 13:47:31.282658016 +0200
48 +++ linux-2.6.9-5.0.3.EL/fs/namespace.c 2005-02-26 13:53:13.803586920 +0200
49 @@ -1241,6 +1241,7 @@
50                 mntput(old_pwdmnt);
51         }
52  }
53 +EXPORT_SYMBOL(set_fs_pwd);
54  
55  static void chroot_fs_refs(struct nameidata *old_nd, struct nameidata *new_nd)
56  {
57 Index: linux-2.6.9-5.0.3.EL/kernel/exit.c
58 ===================================================================
59 --- linux-2.6.9-5.0.3.EL.orig/kernel/exit.c     2005-02-26 13:47:31.300655280 +0200
60 +++ linux-2.6.9-5.0.3.EL/kernel/exit.c  2005-02-26 13:53:13.805586616 +0200
61 @@ -244,6 +244,8 @@
62         write_unlock_irq(&tasklist_lock);
63  }
64  
65 +EXPORT_SYMBOL(reparent_to_init);
66 +
67  void __set_special_pids(pid_t session, pid_t pgrp)
68  {
69         struct task_struct *curr = current;
70 Index: linux-2.6.9-5.0.3.EL/fs/dcache.c
71 ===================================================================
72 --- linux-2.6.9-5.0.3.EL.orig/fs/dcache.c       2005-02-26 13:49:04.365507272 +0200
73 +++ linux-2.6.9-5.0.3.EL/fs/dcache.c    2005-02-26 13:53:13.807586312 +0200
74 @@ -1526,6 +1526,7 @@
75  
76         return result;
77  }
78 +EXPORT_SYMBOL(is_subdir);
79  
80  void d_genocide(struct dentry *root)
81  {