commit | 75556776d315e67e411b983cdcdb05eb74b803a9 | [log] [tgz] |
---|---|---|
author | Sami Liedes <sami.liedes@iki.fi> | Thu Mar 22 19:42:38 2012 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu Mar 22 19:43:48 2012 -0400 |
tree | 599b66ddbe2c8abcda9904b9a4388339ae531ed6 | |
parent | 010dc7b90d97b93907cbf57b3b44f1c1cad234f6 [diff] |
libext2fs: move a modulo operation out of a hot loop. Filesystem shrinking in particular is a heavy user of this loop in ext2fs_new_inode(). This change makes resize2fs use 24% less CPU time for shrinking a 100G filesystem. Signed-off-by: Sami Liedes <sami.liedes@iki.fi> Signed-off-by: Theodore Ts'o <tytso@mit.edu>