Skip to content

Commit

Permalink
ext4: initialization of ext4_li_mtx needs to be done earlier
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 8818739 commit 07c0c5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 07c0c5d

Please sign in to comment.