]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
libext2fs: use the rbtree bitmap by default when initializing a file system
authorTheodore Ts'o <tytso@mit.edu>
Fri, 16 Dec 2011 16:26:00 +0000 (11:26 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 18 Dec 2011 06:12:44 +0000 (01:12 -0500)
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>
lib/ext2fs/initialize.c

index b050a0a9b1e3b79b34625c47dae88ae14c7e91f1..a63ea18d9bddf37b87759da81602df532dee0d2b 100644 (file)
@@ -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