Whamcloud - gitweb
resize2fs: optimize resize2fs_calculate_summary_stats()
authorTheodore Ts'o <tytso@mit.edu>
Tue, 14 Sep 2021 19:05:45 +0000 (15:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 30 Sep 2021 17:38:56 +0000 (13:38 -0400)
commitd8fe566ba5501d7de63b52fb590c0d628a74e027
treefe91014ab91237dfdd4365d5f4de68a458da455a
parent4ea80d031c7eb8e90aaebe1c0c50a3a1230995ed
resize2fs: optimize resize2fs_calculate_summary_stats()

Speed up an off-line resize of a 10GB file system to 64TB located on
tmpfs from 90 seconds to 16 seconds by extracting block group bitmaps
using a population count function to count the blocks in use instead
checking each bit in the block bitmap.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/resize2fs.c