Whamcloud - gitweb
tune2fs: speed up rewriting extent tree when enabling metadata_csum
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 4 Nov 2014 16:52:03 +0000 (11:52 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Nov 2014 16:52:03 +0000 (11:52 -0500)
commit8302e2e68813fa1b18b15cbeab7d7a58934553ea
treeaca92cd4fda1d0721ae1da57aa65271dda6b40a8
parente49b03e341a06a53a5103c467fd5825ec27b752a
tune2fs: speed up rewriting extent tree when enabling metadata_csum

When enabling checksums, tune2fs naively rewrites every extent in the
entire tree!  This is unnecessary since we only need to rewrite each
extent tree block; therefore, only rewrite the extent if it's the
first one in an internal extent tree block.

Also, don't bother iterating the extent tree when clearing checksums.

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