Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174375
b: refs/heads/master
c: 8dadb19
h: refs/heads/master
i:
  174373: 72fe668
  174371: 0f633be
  174367: 4b6b959
v: v3
  • Loading branch information
Theodore Ts'o committed Nov 23, 2009
1 parent d6d9255 commit 76c6054
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 3f8fb9490efbd300887470a2a880a64e04dcc3f5
refs/heads/master: 8dadb198cb70ef811916668fe67eeec82e8858dd
8 changes: 7 additions & 1 deletion trunk/fs/ext4/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,13 @@ static unsigned long ext4_bg_num_gdb_meta(struct super_block *sb,
static unsigned long ext4_bg_num_gdb_nometa(struct super_block *sb,
ext4_group_t group)
{
return ext4_bg_has_super(sb, group) ? EXT4_SB(sb)->s_gdb_count : 0;
if (!ext4_bg_has_super(sb, group))
return 0;

if (EXT4_HAS_INCOMPAT_FEATURE(sb,EXT4_FEATURE_INCOMPAT_META_BG))
return le32_to_cpu(EXT4_SB(sb)->s_es->s_first_meta_bg);
else
return EXT4_SB(sb)->s_gdb_count;
}

/**
Expand Down

0 comments on commit 76c6054

Please sign in to comment.