Index: linux-2.6.0/fs/filesystems.c =================================================================== --- linux-2.6.0.orig/fs/filesystems.c 2003-12-30 08:32:44.000000000 +0300 +++ linux-2.6.0/fs/filesystems.c 2003-12-31 01:10:16.000000000 +0300 @@ -27,7 +27,9 @@ */ static struct file_system_type *file_systems; -static rwlock_t file_systems_lock = RW_LOCK_UNLOCKED; +rwlock_t file_systems_lock = RW_LOCK_UNLOCKED; + +EXPORT_SYMBOL(file_systems_lock); /* WARNING: This can be used only if we _already_ own a reference */ void get_filesystem(struct file_system_type *fs) Index: linux-2.6.0/include/linux/fs.h =================================================================== --- linux-2.6.0.orig/include/linux/fs.h 2003-12-31 00:33:41.000000000 +0300 +++ linux-2.6.0/include/linux/fs.h 2003-12-31 01:09:26.000000000 +0300 @@ -1390,6 +1390,7 @@ extern struct file_operations generic_ro_fops; +extern rwlock_t file_systems_lock; #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m)) extern int vfs_readlink(struct dentry *, char __user *, int, const char *); Index: linux-2.6.0/include/linux/ext2_fs_sb.h =================================================================== --- linux-2.6.0.orig/include/linux/ext2_fs_sb.h 2003-05-15 20:10:39.000000000 +0400 +++ linux-2.6.0/include/linux/ext2_fs_sb.h 2003-12-31 01:09:26.000000000 +0300 @@ -16,9 +16,11 @@ #ifndef _LINUX_EXT2_FS_SB #define _LINUX_EXT2_FS_SB +#ifndef EXT_INCLUDE +#define EXT_INCLUDE #include #include - +#endif /* * second extended-fs super-block data in memory */ Index: linux-2.6.0/include/linux/ext3_fs_sb.h =================================================================== --- linux-2.6.0.orig/include/linux/ext3_fs_sb.h 2003-06-24 18:05:26.000000000 +0400 +++ linux-2.6.0/include/linux/ext3_fs_sb.h 2003-12-31 01:09:26.000000000 +0300 @@ -19,9 +19,12 @@ #ifdef __KERNEL__ #include #include +#ifndef EXT_INCLUDE +#define EXT_INCLUDE #include #include #endif +#endif /* * third extended-fs super-block data in memory