diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-12-16 11:26:00 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-12-18 01:12:44 -0500 |
commit | 0ff7bf30074d8a449ba389e9f088d356447105de (patch) | |
tree | 4f5f0638456d895d0e007469913f7fa33c358ea4 | |
parent | e35ff9b92ac8e1038f9ab972e6f3a73e0091d3ee (diff) | |
download | e2fsprogs-0ff7bf30074d8a449ba389e9f088d356447105de.tar.gz |
libext2fs: use the rbtree bitmap by default when initializing a file system
This change causes the max resident memory of mke2fs, as reported by
/usr/bin/time, to drop from 9296k to 5328k when formatting a 25
gig volume.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r-- | lib/ext2fs/initialize.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ext2fs/initialize.c b/lib/ext2fs/initialize.c index b050a0a9..a63ea18d 100644 --- a/lib/ext2fs/initialize.c +++ b/lib/ext2fs/initialize.c @@ -112,6 +112,7 @@ errcode_t ext2fs_initialize(const char *name, int flags, fs->magic = EXT2_ET_MAGIC_EXT2FS_FILSYS; fs->flags = flags | EXT2_FLAG_RW; fs->umask = 022; + fs->default_bitmap_type = EXT2FS_BMAP64_RBTREE; #ifdef WORDS_BIGENDIAN fs->flags |= EXT2_FLAG_SWAP_BYTES; #endif |