mkfs_ext2: shrink

function                                             old     new   delta
mkfs_ext2_main                                      1924    1904     -20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-10-18 09:57:39 +02:00
parent 28736c36ca
commit 7673e7fda4

View File

@ -283,7 +283,6 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv)
nblocks = xatou(argv[1]); nblocks = xatou(argv[1]);
} else { } else {
nblocks = ((uoff_t)xlseek(fd, 0, SEEK_END)) / blocksize; nblocks = ((uoff_t)xlseek(fd, 0, SEEK_END)) / blocksize;
xlseek(fd, 0, SEEK_SET);
} }
sb->s_blocks_count = nblocks; sb->s_blocks_count = nblocks;
@ -414,7 +413,6 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv)
); );
// dump inode bitmap // dump inode bitmap
PUT((pos + overhead + 1) * blocksize, buf, blocksize); PUT((pos + overhead + 1) * blocksize, buf, blocksize);
} }
// zero boot sectors // zero boot sectors