Whamcloud - gitweb
e2fsck: optimize pass1 for CPU time
authorTheodore Ts'o <tytso@mit.edu>
Sat, 24 Nov 2012 20:40:17 +0000 (15:40 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 Nov 2012 17:37:49 +0000 (12:37 -0500)
commit2ae49fd0cc964aca40e846b47d9bc347b05716eb
treebf4be8afdcb30ec1d46d7622a3f0c3c7f07e971e
parentfc8ea52033fffccfd8aeece9babf77c61c38aed9
e2fsck: optimize pass1 for CPU time

Optimize e2fsck pass 1 by marking entire extents as being in use at a
time, instead of block by block.  This optimization only works for
non-bigalloc file systems for now (it's tricky to handle bigalloc file
systems since this code is also responsible for dealing with blocks
that are not correctly aligned within a cluster).  When the
optimization works, the CPU savings can be significant: ove a full CPU
minute for a mostly full 4T disk.

Addresses-Google-Bug: #7534813

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
e2fsck/pass1.c