Whamcloud - gitweb
libext2fs: set BLOCK_UNINIT for non-last blockgroups if all blocks are free
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 17 Nov 2014 22:41:07 +0000 (17:41 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 17 Nov 2014 22:46:13 +0000 (17:46 -0500)
commitc0ff3a21b6c3b30fbbe16280cf1808864f5803b7
treed72886accb97d2d3113b37329688cb95c53e2020
parent180f376b04c6cca59e25817927efd8fa95493022
libext2fs: set BLOCK_UNINIT for non-last blockgroups if all blocks are free

Set BLOCK_UNINIT in any group whose blocks are all unused, so long as
it isn't the last group.  This helps us speed up future e2fsck runs
and mounts because we don't need to read or checksum block bitmaps for
these groups.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/csum.c