diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 22:05:02 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 22:05:02 -0400 |
commit | 07c0c5d8b8c122b2f2df9ee574ac3083daefc981 (patch) | |
tree | 042fcae9a90b5e200b9c00c32df8096c8099039c /fs | |
parent | 88187398cc5fa6650f38b9dcd5464667f468888f (diff) |
ext4: initialization of ext4_li_mtx needs to be done earlier
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/super.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) | |||
5055 | { | 5055 | { |
5056 | int i, err; | 5056 | int i, err; |
5057 | 5057 | ||
5058 | ext4_li_info = NULL; | ||
5059 | mutex_init(&ext4_li_mtx); | ||
5060 | |||
5058 | ext4_check_flag_values(); | 5061 | ext4_check_flag_values(); |
5059 | 5062 | ||
5060 | for (i = 0; i < EXT4_WQ_HASH_SZ; i++) { | 5063 | for (i = 0; i < EXT4_WQ_HASH_SZ; i++) { |
@@ -5093,8 +5096,6 @@ static int __init ext4_init_fs(void) | |||
5093 | if (err) | 5096 | if (err) |
5094 | goto out; | 5097 | goto out; |
5095 | 5098 | ||
5096 | ext4_li_info = NULL; | ||
5097 | mutex_init(&ext4_li_mtx); | ||
5098 | return 0; | 5099 | return 0; |
5099 | out: | 5100 | out: |
5100 | unregister_as_ext2(); | 5101 | unregister_as_ext2(); |