diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /fs/vfat | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'fs/vfat')
-rw-r--r-- | fs/vfat/namei.c | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/fs/vfat/namei.c b/fs/vfat/namei.c index f0d581771..badb6c7e2 100644 --- a/fs/vfat/namei.c +++ b/fs/vfat/namei.c @@ -10,6 +10,7 @@ * the problem, send a script that demonstrates it. */ +#include <linux/config.h> #include <linux/module.h> #include <linux/sched.h> @@ -19,6 +20,7 @@ #include <linux/string.h> #include <linux/stat.h> #include <linux/mm.h> +#include <linux/init.h> #include <asm/uaccess.h> @@ -1572,34 +1574,23 @@ void vfat_read_inode(struct inode *inode) fat_read_inode(inode, &vfat_dir_inode_operations); } - - - static struct file_system_type vfat_fs_type = { vfat_read_super, "vfat", 1, NULL }; -static struct symbol_table vfat_syms = { -#include <linux/symtab_begin.h> - X(vfat_create), - X(vfat_unlink), - X(vfat_mkdir), - X(vfat_rmdir), - X(vfat_rename), - X(vfat_put_super), - X(vfat_read_super), - X(vfat_read_inode), - X(vfat_lookup), -#include <linux/symtab_end.h> -}; - -int init_vfat_fs(void) +EXPORT_SYMBOL(vfat_create); +EXPORT_SYMBOL(vfat_unlink); +EXPORT_SYMBOL(vfat_mkdir); +EXPORT_SYMBOL(vfat_rmdir); +EXPORT_SYMBOL(vfat_rename); +EXPORT_SYMBOL(vfat_put_super); +EXPORT_SYMBOL(vfat_read_super); +EXPORT_SYMBOL(vfat_read_inode); +EXPORT_SYMBOL(vfat_lookup); + +__initfunc(int init_vfat_fs(void)) { - int status; - - if ((status = register_filesystem(&vfat_fs_type)) == 0) - status = register_symtab(&vfat_syms); - return status; + return register_filesystem(&vfat_fs_type); } #ifdef MODULE @@ -1608,7 +1599,6 @@ int init_module(void) return init_vfat_fs(); } - void cleanup_module(void) { unregister_filesystem(&vfat_fs_type); |