Whamcloud - gitweb
smash the HEAD with the contents of b_cmd. HEAD_PRE_CMD_SMASH and
[fs/lustre-release.git] / lustre / kernel_patches / patches / export_symbols-2.6.0-test6.patch
1 Index: linux-2.6.0-test6/fs/filesystems.c
2 ===================================================================
3 --- linux-2.6.0-test6.orig/fs/filesystems.c     2003-09-28 08:50:40.000000000 +0800
4 +++ linux-2.6.0-test6/fs/filesystems.c  2003-10-07 18:07:58.000000000 +0800
5 @@ -27,7 +27,7 @@
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  /* WARNING: This can be used only if we _already_ own a reference */
13  void get_filesystem(struct file_system_type *fs)
14 Index: linux-2.6.0-test6/include/linux/fs.h
15 ===================================================================
16 --- linux-2.6.0-test6.orig/include/linux/fs.h   2003-10-07 16:09:11.000000000 +0800
17 +++ linux-2.6.0-test6/include/linux/fs.h        2003-10-09 19:47:24.996871688 +0800
18 @@ -1385,6 +1385,7 @@
19  
20  extern struct file_operations generic_ro_fops;
21  
22 +extern rwlock_t file_systems_lock;
23  #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m))
24  
25  extern int vfs_readlink(struct dentry *, char __user *, int, const char *);
26 Index: linux-2.6.0-test6/kernel/ksyms.c
27 ===================================================================
28 --- linux-2.6.0-test6.orig/kernel/ksyms.c       2003-10-07 16:09:09.000000000 +0800
29 +++ linux-2.6.0-test6/kernel/ksyms.c    2003-10-07 18:07:58.000000000 +0800
30 @@ -393,3 +393,4 @@
31  EXPORT_SYMBOL(dump_oncpu);
32  EXPORT_SYMBOL(dump_function_ptr);
33  #endif
34 +EXPORT_SYMBOL(file_systems_lock);
35 Index: linux-2.6.0-test6/include/linux/ext2_fs_sb.h
36 ===================================================================
37 --- linux-2.6.0-test6.orig/include/linux/ext2_fs_sb.h   2003-09-28 08:50:57.000000000 +0800
38 +++ linux-2.6.0-test6/include/linux/ext2_fs_sb.h        2003-10-07 18:07:58.000000000 +0800
39 @@ -16,9 +16,11 @@
40  #ifndef _LINUX_EXT2_FS_SB
41  #define _LINUX_EXT2_FS_SB
42  
43 +#ifndef EXT_INCLUDE
44 +#define EXT_INCLUDE
45  #include <linux/blockgroup_lock.h>
46  #include <linux/percpu_counter.h>
47 -
48 +#endif
49  /*
50   * second extended-fs super-block data in memory
51   */
52 Index: linux-2.6.0-test6/include/linux/ext3_fs_sb.h
53 ===================================================================
54 --- linux-2.6.0-test6.orig/include/linux/ext3_fs_sb.h   2003-09-28 08:51:00.000000000 +0800
55 +++ linux-2.6.0-test6/include/linux/ext3_fs_sb.h        2003-10-07 18:07:58.000000000 +0800
56 @@ -19,9 +19,12 @@
57  #ifdef __KERNEL__
58  #include <linux/timer.h>
59  #include <linux/wait.h>
60 +#ifndef EXT_INCLUDE
61 +#define EXT_INCLUDE
62  #include <linux/blockgroup_lock.h>
63  #include <linux/percpu_counter.h>
64  #endif
65 +#endif
66  
67  /*
68   * third extended-fs super-block data in memory