Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / export_symbols-2.6-suse.patch
1 Index: linux-2.6.4-51.0/fs/filesystems.c
2 ===================================================================
3 --- linux-2.6.4-51.0.orig/fs/filesystems.c      2004-04-05 12:41:59.000000000 -0400
4 +++ linux-2.6.4-51.0/fs/filesystems.c   2004-04-15 14:59:56.000000000 -0400
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.4-51.0/include/linux/fs.h
17 ===================================================================
18 --- linux-2.6.4-51.0.orig/include/linux/fs.h    2004-04-15 14:59:50.000000000 -0400
19 +++ linux-2.6.4-51.0/include/linux/fs.h 2004-04-15 14:59:56.000000000 -0400
20 @@ -1432,6 +1432,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.4-51.0/include/linux/ext2_fs_sb.h
29 ===================================================================
30 --- linux-2.6.4-51.0.orig/include/linux/ext2_fs_sb.h    2004-04-05 12:42:07.000000000 -0400
31 +++ linux-2.6.4-51.0/include/linux/ext2_fs_sb.h 2004-04-15 14:59:56.000000000 -0400
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.5-12.1/kernel/exit.c
46 ===================================================================
47 --- linux-2.6.5-12.1.orig/kernel/exit.c 2004-05-10 12:21:56.000000000 -0400
48 +++ linux-2.6.5-12.1/kernel/exit.c      2004-06-03 18:31:28.000000000 -0400
49 @@ -260,6 +260,8 @@
50         write_unlock_irq(&tasklist_lock);
51  }
52  
53 +EXPORT_SYMBOL(reparent_to_init);
54 +
55  void __set_special_pids(pid_t session, pid_t pgrp)
56  {
57         struct task_struct *curr = current;