Whamcloud - gitweb
libext2fs: optimize ext2fs_allocate_group_table()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 19 Jan 2014 21:47:21 +0000 (16:47 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 21 Jan 2014 03:16:16 +0000 (22:16 -0500)
commitfccdbac394542786f641e768c76f093edcdf1dc6
treeb69d8ebe7ea79d95a724fe6fbe57f9035b981f23
parent5c41451e164fd068f60d44e3970e3fe2623c2b48
libext2fs: optimize ext2fs_allocate_group_table()

By using ext2fs_mark_block_bitmap_range2 and/or
ext2fs_block_alloc_stats_range(), we can significantly speed up the
time needed by mke2fs to allocate the inode table.

For example, the CPU time needed to run the command "mke2fs -t ext4
/tmp/foo.img 32T" (where tmpfs was mounted on /tmp) was decreased from
21.7 CPU seconds down to under 1.7 seconds.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/alloc_tables.c