Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262139
b: refs/heads/master
c: 79a77c5
h: refs/heads/master
i:
  262137: cd2c057
  262135: d88be57
v: v3
  • Loading branch information
Yu Jian authored and Theodore Ts'o committed Aug 1, 2011
1 parent c1cbdac commit d253e88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48e6061bf4bb25eec151b91f22fd90a5b9a4920a
refs/heads/master: 79a77c5ac34cc27ccbfbdf7113b41cdd93534eab
12 changes: 6 additions & 6 deletions trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2465,12 +2465,6 @@ int ext4_mb_init(struct super_block *sb, int needs_recovery)
i++;
} while (i <= sb->s_blocksize_bits + 1);

/* init file for buddy data */
ret = ext4_mb_init_backend(sb);
if (ret != 0) {
goto out;
}

spin_lock_init(&sbi->s_md_lock);
spin_lock_init(&sbi->s_bal_lock);

Expand Down Expand Up @@ -2507,6 +2501,12 @@ int ext4_mb_init(struct super_block *sb, int needs_recovery)
spin_lock_init(&lg->lg_prealloc_lock);
}

/* init file for buddy data */
ret = ext4_mb_init_backend(sb);
if (ret != 0) {
goto out;
}

if (sbi->s_proc)
proc_create_data("mb_groups", S_IRUGO, sbi->s_proc,
&ext4_mb_seq_groups_fops, sb);
Expand Down

0 comments on commit d253e88

Please sign in to comment.