dect
/
linux-2.6
Archived
13
0
Fork 0

ext4: initialization of ext4_li_mtx needs to be done earlier

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2012-03-20 22:05:02 -04:00
parent 88187398cc
commit 07c0c5d8b8
1 changed files with 3 additions and 2 deletions

View File

@ -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();