commit | fccdbac394542786f641e768c76f093edcdf1dc6 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Sun Jan 19 16:47:21 2014 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Jan 20 22:16:16 2014 -0500 |
tree | b69d8ebe7ea79d95a724fe6fbe57f9035b981f23 | |
parent | 5c41451e164fd068f60d44e3970e3fe2623c2b48 [diff] |
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>