Whamcloud - gitweb
e2fsck: during pass1b delete_file, only free a cluster once
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 26 Jul 2014 20:28:58 +0000 (16:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 26 Jul 2014 20:28:58 +0000 (16:28 -0400)
commit8dd650ab9ac394c6d6d19b02e8bb22d5a1e5da0d
treea6f1e3ff8e6c8410e17eac177786c428521da7f5
parent9a1d614df217c02ea6b2cb0072fccfe706aea111
e2fsck: during pass1b delete_file, only free a cluster once

If we're forced to delete a crosslinked file, only call
ext2fs_block_alloc_stats2() on cluster boundaries, since the block
bitmaps are all cluster bitmaps at this point.  It's safe to do this
only once per cluster since we know all the blocks are going away.

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