patch-2.1.18 linux/fs/sysv/inode.c

Next file: linux/fs/ufs/ufs_super.c
Previous file: linux/fs/smbfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.17/linux/fs/sysv/inode.c linux/fs/sysv/inode.c
@@ -42,7 +42,7 @@
 }
 
 
-static struct super_operations sysv_sops = { 
+static struct super_operations sysv_sops = {
 	sysv_read_inode,
 	sysv_notify_change,
 	sysv_write_inode,
@@ -72,7 +72,7 @@
 	sb->sv_inodes_per_block = 512/64;
 	sb->sv_inodes_per_block_1 = 512/64-1;
 	sb->sv_inodes_per_block_bits = 9-6;
-	sb->sv_toobig_block = 10 + 
+	sb->sv_toobig_block = 10 +
 	  (sb->sv_ind_per_block = 512/4) +
 	  (sb->sv_ind_per_block_2 = (512/4)*(512/4)) +
 	  (sb->sv_ind_per_block_3 = (512/4)*(512/4)*(512/4));
@@ -99,7 +99,7 @@
 	sb->sv_inodes_per_block = 1024/64;
 	sb->sv_inodes_per_block_1 = 1024/64-1;
 	sb->sv_inodes_per_block_bits = 10-6;
-	sb->sv_toobig_block = 10 + 
+	sb->sv_toobig_block = 10 +
 	  (sb->sv_ind_per_block = 1024/4) +
 	  (sb->sv_ind_per_block_2 = (1024/4)*(1024/4)) +
 	  (sb->sv_ind_per_block_3 = (1024/4)*(1024/4)*(1024/4));
@@ -336,7 +336,7 @@
 	return sb;
 }
 
-struct super_block *sysv_read_super(struct super_block *sb,void *data, 
+struct super_block *sysv_read_super(struct super_block *sb,void *data,
 				     int silent)
 {
 	struct buffer_head *bh;
@@ -669,7 +669,7 @@
 	return result;
 }
 
-static struct buffer_head * block_getblk(struct inode * inode, 
+static struct buffer_head * block_getblk(struct inode * inode,
 	struct buffer_head * bh, int nr, int create)
 {
 	struct super_block *sb;
@@ -985,19 +985,17 @@
 
 	for (i = 0; i < 3; i++) {
 		if ((ouch = register_filesystem(&sysv_fs_type[i])) != 0)
-			return ouch;
+			break;
 	}
         return ouch;
 }
 
 #ifdef MODULE
+EXPORT_NO_SYMBOLS;
+
 int init_module(void)
 {
-	int status;
-
-	if ((status = init_sysv_fs()) == 0)
-		register_symtab(0);
-	return status;
+	return init_sysv_fs();
 }
 
 void cleanup_module(void)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov