]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: eliminate per-block cluster alignment check
authorTahsin Erdogan <tahsin@google.com>
Sat, 15 Apr 2017 06:24:36 +0000 (23:24 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 27 Apr 2017 15:08:04 +0000 (11:08 -0400)
commitd5d981a369924311b91f437439a4ff4d1d7062b2
tree030069b4b888a3739bb0ee0b55e590851bd47529
parented1e950f847526a36cd1c9e7b6d8930b839335f5
e2fsck: eliminate per-block cluster alignment check

scan_extent_node() did cluster alignment check for every block in an
extent. This is unnecessary and significantly slows down the runtime
when hugefile is used with bigalloc.

Do cluster alignment check once for each extent.

Google-Bug-Id: 36886699

Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/pass5.c
tests/f_badcluster/expect