patch-2.1.127 linux/fs/hfs/super.c

Next file: linux/fs/hfs/sysdep.c
Previous file: linux/fs/hfs/string.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/fs/hfs/super.c linux/fs/hfs/super.c
@@ -34,7 +34,7 @@
 
 /*================ Forward declarations ================*/
 
-static void hfs_read_inode(struct inode *inode);
+static void hfs_read_inode(struct inode *);
 static void hfs_put_super(struct super_block *);
 static int hfs_statfs(struct super_block *, struct statfs *, int);
 static void hfs_write_super(struct super_block *);
@@ -45,7 +45,7 @@
 	hfs_read_inode,		/* read_inode */
 	NULL,			/* write_inode */
 	hfs_put_inode,		/* put_inode     - in inode.c */
-	NULL,                   /* delete inode */
+	NULL,                   /* delete_inode  */
 	hfs_notify_change,	/* notify_change - in inode.c */
 	hfs_put_super,		/* put_super */
 	hfs_write_super,	/* write_super */
@@ -75,7 +75,6 @@
   inode->i_op = NULL;
 }
 
-
 /*
  * hfs_write_super()
  *
@@ -134,8 +133,6 @@
 	set_blocksize(sb->s_dev, BLOCK_SIZE);
 
 	MOD_DEC_USE_COUNT;
-
-	return;
 }
 
 /*
@@ -145,7 +142,7 @@
  * HFS filesystems.  The purpose is to return various data about the
  * filesystem.
  *
- * XXX: changed f_files/f_ffree to reflect the fs_ablock/free_ablocks.
+ * changed f_files/f_ffree to reflect the fs_ablock/free_ablocks.
  */
 static int hfs_statfs(struct super_block *sb, struct statfs *buf, int len)
 {
@@ -434,14 +431,13 @@
 
 	if (!mdb) {
 		if (!silent) {
-			printk("VFS: Can't find a HFS filesystem on dev %s.\n",
+			hfs_warn("VFS: Can't find a HFS filesystem on dev %s.\n",
 			       kdevname(dev));
 		}
 		goto bail2;
 	}
-	HFS_SB(s)->s_mdb = mdb;
-	INIT_LIST_HEAD(&mdb->entry_dirty);
 
+	HFS_SB(s)->s_mdb = mdb;
 	if (HFS_ITYPE(mdb->next_id) != 0) {
 		hfs_warn("hfs_fs: too many files.\n");
 		goto bail1;
@@ -480,8 +476,8 @@
 	hfs_mdb_put(mdb, s->s_flags & MS_RDONLY);
 bail2:
 	set_blocksize(dev, BLOCK_SIZE);
-	MOD_DEC_USE_COUNT;
 	unlock_super(s);
+	MOD_DEC_USE_COUNT;
 bail3:
 	s->s_dev = 0;
 	return NULL;	

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