patch-1.3.58 linux/fs/smbfs/inode.c
Next file: linux/fs/smbfs/proc.c
Previous file: linux/fs/proc/scsi.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Mon Jan 15 07:59:11 1996
- Orig file:
v1.3.57/linux/fs/smbfs/inode.c
- Orig date:
Tue Jan 2 16:46:28 1996
diff -u --recursive --new-file v1.3.57/linux/fs/smbfs/inode.c linux/fs/smbfs/inode.c
@@ -403,15 +403,20 @@
int smb_current_malloced;
#endif
-#ifdef MODULE
-
static struct file_system_type smb_fs_type = {
smb_read_super, "smbfs", 0, NULL
};
-int
-init_module( void)
+int init_smb_fs(void)
{
+ return register_filesystem(&smb_fs_type);
+}
+
+#ifdef MODULE
+int init_module(void)
+{
+ int status;
+
DPRINTK("smbfs: init_module called\n");
#ifdef DEBUG_SMB_MALLOC
@@ -420,7 +425,10 @@
#endif
smb_init_dir_cache();
- return register_filesystem(&smb_fs_type);
+
+ if ((status = init_smb_fs()) == 0)
+ register_symtab(0);
+ return status;
}
void
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this