Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273158
b: refs/heads/master
c: ebbe027
h: refs/heads/master
v: v3
  • Loading branch information
Robin Dong authored and Theodore Ts'o committed Oct 26, 2011
1 parent 44f4cc9 commit 24eef40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fcbb5515825f1bb20b7a6f75ec48bee61416f879
refs/heads/master: ebbe027797f67d34708ccfabdb129886d549f9ce
5 changes: 5 additions & 0 deletions trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4006,6 +4006,11 @@ static void ext4_mb_group_or_file(struct ext4_allocation_context *ac)
return;
}

if (sbi->s_mb_group_prealloc <= 0) {
ac->ac_flags |= EXT4_MB_STREAM_ALLOC;
return;
}

/* don't use group allocation for large files */
size = max(size, isize);
if (size > sbi->s_mb_stream_request) {
Expand Down

0 comments on commit 24eef40

Please sign in to comment.