patch-1.3.58 linux/fs/sysv/inode.c
Next file: linux/fs/umsdos/inode.c
Previous file: linux/fs/smbfs/proc.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Mon Jan 15 07:59:12 1996
- Orig file:
v1.3.57/linux/fs/sysv/inode.c
- Orig date:
Mon Nov 27 12:48:32 1995
diff -u --recursive --new-file v1.3.57/linux/fs/sysv/inode.c linux/fs/sysv/inode.c
@@ -969,8 +969,6 @@
return err;
}
-#ifdef MODULE
-
/* Every kernel module contains stuff like this. */
static struct file_system_type sysv_fs_type[3] = {
@@ -979,7 +977,7 @@
{sysv_read_super, "coherent", 1, NULL}
};
-int init_module(void)
+int init_sysv_fs(void)
{
int i;
int ouch;
@@ -988,7 +986,17 @@
if ((ouch = register_filesystem(&sysv_fs_type[i])) != 0)
return ouch;
}
- return 0;
+ return ouch;
+}
+
+#ifdef MODULE
+int init_module(void)
+{
+ int status;
+
+ if ((status = init_sysv_fs()) == 0)
+ register_symtab(0);
+ return status;
}
void cleanup_module(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