]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix long mount times on very big file systems
authorTheodore Ts'o <tytso@mit.edu>
Thu, 16 Aug 2012 15:59:04 +0000 (11:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Aug 2012 13:23:00 +0000 (09:23 -0400)
commit1c0aaa9796d838a05c12d13e6f8cfc18dcec68e0
treeaed6d4a1b8feb45bf4edad074ba891adc9c0c50e
parentf1780efdf6aa9d8bc2ec184e543d53889b76e647
ext4: fix long mount times on very big file systems

Commit 8aeb00ff85a: "ext4: fix overhead calculation used by
ext4_statfs()" introduced a O(n**2) calculation which makes very large
file systems take forever to mount.  Fix this with an optimization for
non-bigalloc file systems.  (For bigalloc file systems the overhead
needs to be set in the the superblock.)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/super.c