Whamcloud - gitweb
Branch b1_8
[fs/lustre-release.git] / lustre / kernel_patches / patches / export_symbols-2.6.22-vanilla.patch
1 Index: linux-2.6.22.5/fs/filesystems.c
2 ===================================================================
3 --- linux-2.6.22.5.orig/fs/filesystems.c        2007-08-22 17:23:54.000000000 -0600
4 +++ linux-2.6.22.5/fs/filesystems.c     2008-02-21 00:58:18.000000000 -0700
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.22.5/fs/namespace.c
17 ===================================================================
18 --- linux-2.6.22.5.orig/fs/namespace.c  2007-08-22 17:23:54.000000000 -0600
19 +++ linux-2.6.22.5/fs/namespace.c       2008-02-21 00:58:18.000000000 -0700
20 @@ -1617,6 +1617,7 @@
21                 mntput(old_pwdmnt);
22         }
23  }
24 +EXPORT_SYMBOL(set_fs_pwd);
25  
26  static void chroot_fs_refs(struct nameidata *old_nd, struct nameidata *new_nd)
27  {
28 Index: linux-2.6.22.5/fs/dcache.c
29 ===================================================================
30 --- linux-2.6.22.5.orig/fs/dcache.c     2008-02-21 00:57:02.000000000 -0700
31 +++ linux-2.6.22.5/fs/dcache.c  2008-02-21 00:58:18.000000000 -0700
32 @@ -2027,6 +2027,7 @@
33  
34         return result;
35  }
36 +EXPORT_SYMBOL(is_subdir);
37  
38  void d_genocide(struct dentry *root)
39  {
40 Index: linux-2.6.22.5/include/linux/fs.h
41 ===================================================================
42 --- linux-2.6.22.5.orig/include/linux/fs.h      2008-02-21 00:56:39.000000000 -0700
43 +++ linux-2.6.22.5/include/linux/fs.h   2008-02-21 00:58:18.000000000 -0700
44 @@ -1861,6 +1861,7 @@
45  
46  extern const struct file_operations generic_ro_fops;
47  
48 +extern rwlock_t file_systems_lock;
49  #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m))
50  
51  extern int vfs_readlink(struct dentry *, char __user *, int, const char *);