Re: [Ext2-devel] [UPDATE][14/21]e2fsprogs modify variables to exceed 2G

From: Andreas Dilger
Date: Wed Apr 26 2006 - 01:12:12 EST


On Apr 26, 2006 10:49 +0900, sho@xxxxxxxxxxxxxx wrote:
> + blk64_t end, save_blocks_count, i;
> + (EXT2_BLOCKS_PER_GROUP(fs->super) * (__u64)fs->group_desc_count) - 1;
> + blk64_t start_blk, last_blk;
> + last_blk = (__u64) group_blk + fs->super->s_blocks_per_group - 1;
>
> + start_blk = (__u64) group_blk + fs->inode_blocks_per_group;

If a variable is declared as blk64_t it should be cast to (blk64_t) instead
of (__u64) I think.

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.

-
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/