patch-2.1.118 linux/fs/ext2/ialloc.c

Next file: linux/fs/fat/dir.c
Previous file: linux/fs/ext2/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.117/linux/fs/ext2/ialloc.c linux/fs/ext2/ialloc.c
@@ -101,7 +101,8 @@
 			    "block_group = %d, groups_count = %lu",
 			     block_group, sb->u.ext2_sb.s_groups_count);
 	if (sb->u.ext2_sb.s_loaded_inode_bitmaps > 0 &&
-	    sb->u.ext2_sb.s_inode_bitmap_number[0] == block_group)
+	    sb->u.ext2_sb.s_inode_bitmap_number[0] == block_group &&
+	    sb->u.ext2_sb.s_inode_bitmap[0] != NULL)
 		return 0;
 	if (sb->u.ext2_sb.s_groups_count <= EXT2_MAX_GROUP_LOADED) {
 		if (sb->u.ext2_sb.s_inode_bitmap[block_group]) {

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