patch-2.3.51 linux/fs/ext2/balloc.c

Next file: linux/fs/ext2/ialloc.c
Previous file: linux/fs/efs/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.50/linux/fs/ext2/balloc.c linux/fs/ext2/balloc.c
@@ -679,6 +679,7 @@
 		test_root(group, 7));
 }
 
+/* Called at mount-time, super-block is locked */
 void ext2_check_blocks_bitmap (struct super_block * sb)
 {
 	struct buffer_head * bh;
@@ -689,7 +690,6 @@
 	struct ext2_group_desc * gdp;
 	int i, j;
 
-	lock_super (sb);
 	es = sb->u.ext2_sb.s_es;
 	desc_count = 0;
 	bitmap_count = 0;
@@ -752,5 +752,4 @@
 			    "Wrong free blocks count in super block, "
 			    "stored = %lu, counted = %lu",
 			    (unsigned long) le32_to_cpu(es->s_free_blocks_count), bitmap_count);
-	unlock_super (sb);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)