diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-05 06:47:02 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-05 06:47:02 +0000 |
commit | 99a7e12f34b3661a0d1354eef83a0eef4df5e34c (patch) | |
tree | 3560aca9ca86792f9ab7bd87861ea143a1b3c7a3 /fs/ext2/super.c | |
parent | e73a04659c0b8cdee4dd40e58630e2cf63afb316 (diff) |
Merge with Linux 2.3.38.
Diffstat (limited to 'fs/ext2/super.c')
-rw-r--r-- | fs/ext2/super.c | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index dadd3c67e..cefde46fd 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -723,33 +723,6 @@ int ext2_remount (struct super_block * sb, int * flags, char * data) return 0; } -static struct file_system_type ext2_fs_type = { - "ext2", - FS_REQUIRES_DEV /* | FS_IBASKET */, /* ibaskets have unresolved bugs */ - ext2_read_super, - NULL -}; - -int __init init_ext2_fs(void) -{ - return register_filesystem(&ext2_fs_type); -} - -#ifdef MODULE -EXPORT_NO_SYMBOLS; - -int init_module(void) -{ - return init_ext2_fs(); -} - -void cleanup_module(void) -{ - unregister_filesystem(&ext2_fs_type); -} - -#endif - int ext2_statfs (struct super_block * sb, struct statfs * buf, int bufsiz) { unsigned long overhead; @@ -805,3 +778,25 @@ int ext2_statfs (struct super_block * sb, struct statfs * buf, int bufsiz) tmp.f_namelen = EXT2_NAME_LEN; return copy_to_user(buf, &tmp, bufsiz) ? -EFAULT : 0; } + +static struct file_system_type ext2_fs_type = { + "ext2", + FS_REQUIRES_DEV /* | FS_IBASKET */, /* ibaskets have unresolved bugs */ + ext2_read_super, + NULL +}; + +static int __init init_ext2_fs(void) +{ + return register_filesystem(&ext2_fs_type); +} + +static void __exit exit_ext2_fs(void) +{ + unregister_filesystem(&ext2_fs_type); +} + +EXPORT_NO_SYMBOLS; + +module_init(init_ext2_fs) +module_exit(exit_ext2_fs) |