Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262095
b: refs/heads/master
c: 169ddc3
h: refs/heads/master
i:
  262093: a1fb533
  262091: c2f8a73
  262087: 42e3902
  262079: 3ff7737
v: v3
  • Loading branch information
Tao Ma authored and Theodore Ts'o committed Jul 11, 2011
1 parent 7fa7dd3 commit 0a6fc1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 22f10457432387615fa1ae6e0375d9cacc50819b
refs/heads/master: 169ddc3ec83b5f732e51d975befb191d50795844
5 changes: 3 additions & 2 deletions trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4821,7 +4821,7 @@ ext4_trim_all_free(struct super_block *sb, ext4_group_t group,
ext4_grpblk_t minblocks)
{
void *bitmap;
ext4_grpblk_t next, count = 0;
ext4_grpblk_t next, count = 0, free_count = 0;
struct ext4_buddy e4b;
int ret;

Expand All @@ -4848,6 +4848,7 @@ ext4_trim_all_free(struct super_block *sb, ext4_group_t group,
next - start, group, &e4b);
count += next - start;
}
free_count += next - start;
start = next + 1;

if (fatal_signal_pending(current)) {
Expand All @@ -4861,7 +4862,7 @@ ext4_trim_all_free(struct super_block *sb, ext4_group_t group,
ext4_lock_group(sb, group);
}

if ((e4b.bd_info->bb_free - count) < minblocks)
if ((e4b.bd_info->bb_free - free_count) < minblocks)
break;
}
ext4_unlock_group(sb, group);
Expand Down

0 comments on commit 0a6fc1d

Please sign in to comment.