From: Eric Sandeen Fix some endian errors in the 16T ext[23] patches I sent in the past couple weeks. Signed-off-by: Eric Sandeen Signed-off-by: Andrew Morton --- fs/ext2/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/ext2/super.c~fix-ext2-mounts-at-16t-fix fs/ext2/super.c --- a/fs/ext2/super.c~fix-ext2-mounts-at-16t-fix +++ a/fs/ext2/super.c @@ -553,7 +553,7 @@ static int ext2_check_descriptors (struc for (i = 0; i < sbi->s_groups_count; i++) { if (i == sbi->s_groups_count - 1) - last_block = sbi->s_es->s_blocks_count - 1; + last_block = le32_to_cpu(sbi->s_es->s_blocks_count) - 1; else last_block = first_block + (EXT2_BLOCKS_PER_GROUP(sb) - 1); _