1 Index: linux-2.6/fs/filesystems.c
2 ===================================================================
3 --- linux-2.6.orig/fs/filesystems.c 2006-07-15 16:08:35.000000000 +0800
4 +++ linux-2.6/fs/filesystems.c 2006-07-15 16:14:19.000000000 +0800
8 static struct file_system_type *file_systems;
9 -static DEFINE_RWLOCK(file_systems_lock);
10 +DEFINE_RWLOCK(file_systems_lock);
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/include/linux/fs.h
17 ===================================================================
18 --- linux-2.6.orig/include/linux/fs.h 2006-07-15 16:10:37.000000000 +0800
19 +++ linux-2.6/include/linux/fs.h 2006-07-15 16:14:19.000000000 +0800
20 @@ -1768,6 +1768,7 @@ static inline ssize_t blockdev_direct_IO
22 extern const struct file_operations generic_ro_fops;
24 +extern rwlock_t file_systems_lock;
25 #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m))
27 extern int vfs_readlink(struct dentry *, char __user *, int, const char *);
28 Index: linux-2.6/fs/namespace.c
29 ===================================================================
30 --- linux-2.6.orig/fs/namespace.c 2006-07-15 16:10:33.000000000 +0800
31 +++ linux-2.6/fs/namespace.c 2006-07-15 16:14:19.000000000 +0800
32 @@ -1641,6 +1641,7 @@ void set_fs_pwd(struct fs_struct *fs, st
36 +EXPORT_SYMBOL(set_fs_pwd);
38 static void chroot_fs_refs(struct nameidata *old_nd, struct nameidata *new_nd)
40 Index: linux-2.6/fs/dcache.c
41 ===================================================================
42 --- linux-2.6.orig/fs/dcache.c 2006-07-15 16:14:00.000000000 +0800
43 +++ linux-2.6/fs/dcache.c 2006-07-15 16:14:19.000000000 +0800
44 @@ -1628,6 +1628,7 @@ int is_subdir(struct dentry * new_dentry
48 +EXPORT_SYMBOL(is_subdir);
50 void d_genocide(struct dentry *root)