From 95fee9154a9295db9f250367cbc3b80b1ed9653a Mon Sep 17 00:00:00 2001 From: Yongqiang Yang Date: Wed, 5 Sep 2012 01:25:50 -0400 Subject: [PATCH] --- yaml --- r: 331575 b: refs/heads/master c: 6df935ad2fced9033ab52078825fcaf6365f34b7 h: refs/heads/master i: 331573: 9308685d6470c354980dff57030e50302ad49c04 331571: e063a8ede705c181a3819527d027486da289c0f5 331567: 18441f9d2fa9f9eca0c399d64382197729240b12 v: v3 --- [refs] | 2 +- trunk/fs/ext4/resize.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d660efb19efc..5e9445a9dbea 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d7574ad08bac1ef89cb679d2c76c91ff9281c2e2 +refs/heads/master: 6df935ad2fced9033ab52078825fcaf6365f34b7 diff --git a/trunk/fs/ext4/resize.c b/trunk/fs/ext4/resize.c index 591f4bda1146..a0ee26c23dd8 100644 --- a/trunk/fs/ext4/resize.c +++ b/trunk/fs/ext4/resize.c @@ -456,6 +456,9 @@ static int setup_new_flex_group_blocks(struct super_block *sb, gdblocks = ext4_bg_num_gdb(sb, group); start = ext4_group_first_block_no(sb, group); + if (!ext4_bg_has_super(sb, group)) + goto handle_itb; + /* Copy all of the GDT blocks into the backup in this group */ for (j = 0, block = start + 1; j < gdblocks; j++, block++) { struct buffer_head *gdb; @@ -498,6 +501,7 @@ static int setup_new_flex_group_blocks(struct super_block *sb, goto out; } +handle_itb: /* Initialize group tables of the grop @group */ if (!(bg_flags[i] & EXT4_BG_INODE_ZEROED)) goto handle_bb;