diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-11-15 15:29:56 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-11-15 15:29:56 -0500 |
commit | 1032988c71f3f85483b2b4319684d1205a704c02 (patch) | |
tree | ace311067686bf5b93e10ab793ee62b593d8660f /fs/ext4/block_validity.c | |
parent | 8dadb198cb70ef811916668fe67eeec82e8858dd (diff) | |
download | linux-1032988c71f3f85483b2b4319684d1205a704c02.tar.gz linux-1032988c71f3f85483b2b4319684d1205a704c02.tar.bz2 linux-1032988c71f3f85483b2b4319684d1205a704c02.zip |
ext4: fix block validity checks so they work correctly with meta_bg
The block validity checks used by ext4_data_block_valid() wasn't
correctly written to check file systems with the meta_bg feature. Fix
this.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4/block_validity.c')
-rw-r--r-- | fs/ext4/block_validity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/block_validity.c b/fs/ext4/block_validity.c index 50784ef07563..dc79b75d8f70 100644 --- a/fs/ext4/block_validity.c +++ b/fs/ext4/block_validity.c @@ -160,7 +160,7 @@ int ext4_setup_system_zone(struct super_block *sb) if (ext4_bg_has_super(sb, i) && ((i < 5) || ((i % flex_size) == 0))) add_system_zone(sbi, ext4_group_first_block_no(sb, i), - sbi->s_gdb_count + 1); + ext4_bg_num_gdb(sb, i) + 1); gdp = ext4_get_group_desc(sb, i, NULL); ret = add_system_zone(sbi, ext4_block_bitmap(sb, gdp), 1); if (ret) |