Whamcloud - gitweb
- mds->lmv->mdc propagate lower timeout down to import
[fs/lustre-release.git] / lustre / kernel_patches / patches / export_symbols-2.6.0.patch
1 Index: linux-2.6.0/fs/filesystems.c
2 ===================================================================
3 --- linux-2.6.0.orig/fs/filesystems.c   2003-12-30 08:32:44.000000000 +0300
4 +++ linux-2.6.0/fs/filesystems.c        2003-12-31 01:10:16.000000000 +0300
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.0/include/linux/fs.h
17 ===================================================================
18 --- linux-2.6.0.orig/include/linux/fs.h 2003-12-31 00:33:41.000000000 +0300
19 +++ linux-2.6.0/include/linux/fs.h      2003-12-31 01:09:26.000000000 +0300
20 @@ -1390,6 +1390,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.0/include/linux/ext2_fs_sb.h
29 ===================================================================
30 --- linux-2.6.0.orig/include/linux/ext2_fs_sb.h 2003-05-15 20:10:39.000000000 +0400
31 +++ linux-2.6.0/include/linux/ext2_fs_sb.h      2003-12-31 01:09:26.000000000 +0300
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.0/include/linux/ext3_fs_sb.h
46 ===================================================================
47 --- linux-2.6.0.orig/include/linux/ext3_fs_sb.h 2003-06-24 18:05:26.000000000 +0400
48 +++ linux-2.6.0/include/linux/ext3_fs_sb.h      2003-12-31 01:09:26.000000000 +0300
49 @@ -19,9 +19,12 @@
50  #ifdef __KERNEL__
51  #include <linux/timer.h>
52  #include <linux/wait.h>
53 +#ifndef EXT_INCLUDE
54 +#define EXT_INCLUDE
55  #include <linux/blockgroup_lock.h>
56  #include <linux/percpu_counter.h>
57  #endif
58 +#endif
59  
60  /*
61   * third extended-fs super-block data in memory