Whamcloud - gitweb
- during last landing old version of the patch was checked in. fixed
[fs/lustre-release.git] / lustre / kernel_patches / patches / export_symbols-2.6-suse.patch
1 Index: linux-2.6.7/fs/filesystems.c
2 ===================================================================
3 --- linux-2.6.7.orig/fs/filesystems.c   2004-06-16 13:19:51.000000000 +0800
4 +++ linux-2.6.7/fs/filesystems.c        2004-09-06 21:01:57.000000000 +0800
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.7/fs/namespace.c
17 ===================================================================
18 --- linux-2.6.7.orig/fs/namespace.c     2004-09-06 21:00:27.000000000 +0800
19 +++ linux-2.6.7/fs/namespace.c  2004-09-06 21:01:57.000000000 +0800
20 @@ -364,7 +364,7 @@
21         }
22  }
23  
24 -static int do_umount(struct vfsmount *mnt, int flags)
25 +int do_umount(struct vfsmount *mnt, int flags)
26  {
27         struct super_block * sb = mnt->mnt_sb;
28         int retval;
29 @@ -439,7 +439,7 @@
30         up_write(&current->namespace->sem);
31         return retval;
32  }
33 -
34 +EXPORT_SYMBOL(do_umount);
35  /*
36   * Now umount can handle mount points as well as block devices.
37   * This is important for filesystems which use unnamed block devices.
38 Index: linux-2.6.7/include/linux/fs.h
39 ===================================================================
40 --- linux-2.6.7.orig/include/linux/fs.h 2004-08-30 19:31:13.000000000 +0800
41 +++ linux-2.6.7/include/linux/fs.h      2004-09-06 21:01:57.000000000 +0800
42 @@ -1474,6 +1474,7 @@
43  
44  extern struct file_operations generic_ro_fops;
45  
46 +extern rwlock_t file_systems_lock;
47  #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m))
48  
49  extern int vfs_readlink(struct dentry *, char __user *, int, const char *);
50 Index: linux-2.6.7/include/linux/ext2_fs_sb.h
51 ===================================================================
52 --- linux-2.6.7.orig/include/linux/ext2_fs_sb.h 2004-06-16 13:19:53.000000000 +0800
53 +++ linux-2.6.7/include/linux/ext2_fs_sb.h      2004-09-06 21:01:57.000000000 +0800
54 @@ -16,9 +16,11 @@
55  #ifndef _LINUX_EXT2_FS_SB
56  #define _LINUX_EXT2_FS_SB
57  
58 +#ifndef EXT_INCLUDE
59 +#define EXT_INCLUDE
60  #include <linux/blockgroup_lock.h>
61  #include <linux/percpu_counter.h>
62 -
63 +#endif
64  /*
65   * second extended-fs super-block data in memory
66   */
67 Index: linux-2.6.7/include/linux/mount.h
68 ===================================================================
69 --- linux-2.6.7.orig/include/linux/mount.h      2004-09-06 21:01:55.000000000 +0800
70 +++ linux-2.6.7/include/linux/mount.h   2004-09-06 21:02:26.000000000 +0800
71 @@ -56,6 +56,7 @@
72  extern struct vfsmount *alloc_vfsmnt(const char *name);
73  extern struct vfsmount *do_kern_mount(const char *fstype, int flags,
74                                       const char *name, void *data);
75 +extern int do_umount(struct vfsmount *mnt, int flags);
76  extern spinlock_t vfsmount_lock;
77  
78  #endif
79 Index: linux-2.6.7/kernel/kallsyms.c
80 ===================================================================
81 --- linux-2.6.7.orig/kernel/kallsyms.c  2004-06-16 13:20:19.000000000 +0800
82 +++ linux-2.6.7/kernel/kallsyms.c       2004-09-06 21:01:57.000000000 +0800
83 @@ -322,3 +322,4 @@
84  
85  EXPORT_SYMBOL(kallsyms_lookup);
86  EXPORT_SYMBOL(__print_symbol);
87 +EXPORT_SYMBOL(kernel_text_address);