patch-2.1.49 linux/fs/super.c

Next file: linux/include/linux/dcache.h
Previous file: linux/fs/nfsd/nfsfh.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.48/linux/fs/super.c linux/fs/super.c
@@ -1067,7 +1067,16 @@
 
 __initfunc(void mount_root(void))
 {
+	struct super_block * sb = super_blocks;
+	int i;
+
 	memset(super_blocks, 0, sizeof(super_blocks));
+	/*
+	 * Initialize the dirty inode list headers for the super blocks
+	 */
+	for (i = NR_SUPER ; i-- ; sb++)
+		INIT_LIST_HEAD(&sb->s_dirty);
+
 	do_mount_root();
 }
 
@@ -1109,7 +1118,6 @@
 		dput(dir_d);
 		error = -ENOTDIR;
 	}
-	dput(old_root);
 	dput(old_pwd);
 	if (error) {
 		int umount_error;

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