]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Aug 2012 02:31:42 +0000 (19:31 -0700)
commite1a2e15bd925ff7bac6acc62788f517746abd1e3
tree770c5b3f478071f3248011a3a33933abb3777e9b
parente05ea717652a0ce1a2cf8729535ac90c5aee6734
ext4: fix long mount times on very big file systems

commit 0548bbb85337e532ca2ed697c3e9b227ff2ed4b4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c