Re: [Ext2-devel] [PATCH] fix ext3 mounts at 16T

From: Johann Lombardi
Date: Wed Aug 16 2006 - 07:43:27 EST


> static int ext3_check_descriptors (struct super_block * sb)
> {
> struct ext3_sb_info *sbi = EXT3_SB(sb);
> - ext3_fsblk_t block = le32_to_cpu(sbi->s_es->s_first_data_block);
> + ext3_fsblk_t first_block = le32_to_cpu(sbi->s_es->s_first_data_block);
> + ext3_fsblk_t last_block;
> struct ext3_group_desc * gdp = NULL;
> int desc_block = 0;
> int i;
> @@ -1141,12 +1142,16 @@ static int ext3_check_descriptors (struc
>
> for (i = 0; i < sbi->s_groups_count; i++)
> {
> + if (i == sbi->s_groups_count - 1)
> + last_block = sb->s_blocks_count - 1;
> + else
> + last = first + (EXT3_BLOCKS_PER_GROUP(sb) - 1);

I think it should be:
last_block = first_block + ...

Johann
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/