From: Theodore Ts'o Date: Tue, 15 Jul 2014 10:01:38 +0000 (-0400) Subject: ext4: rearrange initialization to fix EXT4FS_DEBUG X-Git-Tag: omap-for-v3.17/fixes-against-rc2~162^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5e03cbb0c88cd1be39f2adc37d602230045964b;p=pandora-kernel.git ext4: rearrange initialization to fix EXT4FS_DEBUG The EXT4FS_DEBUG is a *very* developer specific #ifdef designed for ext4 developers only. (You have to modify fs/ext4/ext4.h to enable it.) Rearrange how we initialize data structures to avoid calling ext4_count_free_clusters() until the multiblock allocator has been initialized. This also allows us to only call ext4_count_free_clusters() once, and simplifies the code somewhat. (Thanks to Chen Gang for pointing out a !CONFIG_SMP compile breakage in the original patch.) Signed-off-by: Theodore Ts'o Reviewed-by: Lukas Czerner --- Reading git-diff-tree failed