From d253e887c4777e995b403494ff79c7658a3ffba9 Mon Sep 17 00:00:00 2001 From: Yu Jian Date: Mon, 1 Aug 2011 17:41:46 -0400 Subject: [PATCH] --- yaml --- r: 262139 b: refs/heads/master c: 79a77c5ac34cc27ccbfbdf7113b41cdd93534eab h: refs/heads/master i: 262137: cd2c057cc481bd5eb2641b9a0b0b463200dc4ebe 262135: d88be5785a2398c19f0c287f9a2b087feb0c1c49 v: v3 --- [refs] | 2 +- trunk/fs/ext4/mballoc.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 39a016765d55..81461b5bc5dd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 48e6061bf4bb25eec151b91f22fd90a5b9a4920a +refs/heads/master: 79a77c5ac34cc27ccbfbdf7113b41cdd93534eab diff --git a/trunk/fs/ext4/mballoc.c b/trunk/fs/ext4/mballoc.c index e41620b56e53..17a5a57c415a 100644 --- a/trunk/fs/ext4/mballoc.c +++ b/trunk/fs/ext4/mballoc.c @@ -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); @@ -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);