patch-1.3.58 linux/fs/nfs/inode.c
Next file: linux/fs/nfs/nfsroot.c
Previous file: linux/fs/ncpfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Mon Jan 15 07:59:11 1996
- Orig file:
v1.3.57/linux/fs/nfs/inode.c
- Orig date:
Thu Jan 4 21:54:58 1996
diff -u --recursive --new-file v1.3.57/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -288,17 +288,25 @@
return error;
}
-#ifdef MODULE
-
/* Every kernel module contains stuff like this. */
static struct file_system_type nfs_fs_type = {
nfs_read_super, "nfs", 0, NULL
};
+int init_nfs_fs(void)
+{
+ return register_filesystem(&nfs_fs_type);
+}
+
+#ifdef MODULE
int init_module(void)
{
- return register_filesystem(&nfs_fs_type);
+ int status;
+
+ if ((status = init_nfs_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