fsck: cleanup and reduce unnecessary devcount updates
commit56ff97b6cedb532aa5ffec1c798ce1401d050677
authorEric Wong <normalperson@yhbt.net>
Sat, 12 May 2012 02:54:39 +0000 (12 02:54 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 12 May 2012 02:54:39 +0000 (12 02:54 +0000)
tree57d6b50e4e648bd8c19dc1dcaf1f9038da4f9ac6
parent3c1c6809d43f10eb9817efd734289e159947fb6d
fsck: cleanup and reduce unnecessary devcount updates

fix_fid(): we no longer rely blindly update devcount on every
call.  This is important because we call fix_fid() on checksum
checks regardless, and devcount updates entail unnecessary
updates to the `file' table.

While we're at it, consolidate the places where we check the
skip_devcount flag and log bad devcounts.
lib/MogileFS/Worker/Fsck.pm