[ext2resize] [patch] ext2fs_allocate_group_table cleanup
Status: Inactive
Brought to you by:
adilger
From: Coywolf Qi H. <qi...@fc...> - 2006-03-17 02:45:11
|
Hello, Cleanup the fake 'if' statement because of (a % b) <= (b - 1). Conceptually, this fix classifies that with stride, BM < IT impossible. It is for ext2resize bug fix. Signed-off-by: Coywolf Qi Hunt <qi...@fc...> --- diff -r 8991ece34224 lib/ext2fs/alloc_tables.c --- a/lib/ext2fs/alloc_tables.c Fri Mar 10 21:39:40 2006 -0500 +++ b/lib/ext2fs/alloc_tables.c Fri Mar 17 10:30:33 2006 +0800 @@ -51,8 +51,6 @@ errcode_t ext2fs_allocate_group_table(ex start_blk = group_blk + fs->inode_blocks_per_group; start_blk += ((fs->stride * group) % (last_blk - start_blk)); - if (start_blk > last_blk) - start_blk = group_blk; } else start_blk = group_blk; -- Coywolf Qi Hunt |