From: Al Viro Date: Wed, 21 Mar 2012 02:05:02 +0000 (-0400) Subject: ext4: initialization of ext4_li_mtx needs to be done earlier X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07c0c5d8b8c122b2f2df9ee574ac3083daefc981;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ext4: initialization of ext4_li_mtx needs to be done earlier Signed-off-by: Al Viro --- diff --git a/fs/ext4/super.c b/fs/ext4/super.c index d2baea7bcf30..933900909ed0 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5055,6 +5055,9 @@ static int __init ext4_init_fs(void) { int i, err; + ext4_li_info = NULL; + mutex_init(&ext4_li_mtx); + ext4_check_flag_values(); for (i = 0; i < EXT4_WQ_HASH_SZ; i++) { @@ -5093,8 +5096,6 @@ static int __init ext4_init_fs(void) if (err) goto out; - ext4_li_info = NULL; - mutex_init(&ext4_li_mtx); return 0; out: unregister_as_ext2();