Whamcloud - gitweb
pass1b.c (pass1b, process_pass1b_block): Change the num_bad
authorTheodore Ts'o <tytso@mit.edu>
Sun, 8 Jul 2001 03:01:31 +0000 (23:01 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 8 Jul 2001 03:01:31 +0000 (23:01 -0400)
commit7b63fff9b6c4a0ca3b80740f01f5bf0583b42aa9
tree503ba581706664b5122cd42662567eac0fe20590
parentb5acdb6ae2a05212b1014a3dee7cbcf385446b3b
pass1b.c (pass1b, process_pass1b_block): Change the num_bad
field calculation so that it only counts EA block entries
as a single multiply claimed block (since once we clone
the EA blocks for one inode, we fix the problem for all of
the other inodes).  Also, I moved the num_bad calculation
from process_pass1b_block to the end of pass1b.  This
fixes a *significant* performance bug in pass1b which hit
people who had to had a lot of multiply claimed blocks.
(Can you say O(n**3) boys and girls?  I knew you could...
Fortunately, this case didn't happen that much in actual practice.)
e2fsck/ChangeLog
e2fsck/pass1b.c