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
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;
12 +EXPORT_SYMBOL(file_systems_lock);
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
24 -static int do_umount(struct vfsmount *mnt, int flags)
25 +int do_umount(struct vfsmount *mnt, int flags)
27 struct super_block * sb = mnt->mnt_sb;
30 up_write(¤t->namespace->sem);
34 +EXPORT_SYMBOL(do_umount);
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
44 extern struct file_operations generic_ro_fops;
46 +extern rwlock_t file_systems_lock;
47 #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m))
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
55 #ifndef _LINUX_EXT2_FS_SB
56 #define _LINUX_EXT2_FS_SB
60 #include <linux/blockgroup_lock.h>
61 #include <linux/percpu_counter.h>
65 * second extended-fs super-block data in memory
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
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;
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
85 EXPORT_SYMBOL(kallsyms_lookup);
86 EXPORT_SYMBOL(__print_symbol);
87 +EXPORT_SYMBOL(kernel_text_address);