Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377612
b: refs/heads/master
c: 2ed5724
h: refs/heads/master
v: v3
  • Loading branch information
Theodore Ts'o committed Jun 12, 2013
1 parent 57e791a commit 2dd71bd
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 20970ba65d5a22f2e4efbfa100377722fde56935
refs/heads/master: 2ed5724d5a78a22864ef0bd6af4fcb8a15379f00
4 changes: 3 additions & 1 deletion trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2105,6 +2105,7 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)
group = ac->ac_g_ex.fe_group;

for (i = 0; i < ngroups; group++, i++) {
cond_resched();
/*
* Artificially restricted ngroups for non-extent
* files makes group > ngroups possible on first loop.
Expand Down Expand Up @@ -4612,10 +4613,11 @@ void ext4_free_blocks(handle_t *handle, struct inode *inode,
BUG_ON(bh && (count > 1));

for (i = 0; i < count; i++) {
cond_resched();
if (!bh)
tbh = sb_find_get_block(inode->i_sb,
block + i);
if (unlikely(!tbh))
if (!tbh)
continue;
ext4_forget(handle, flags & EXT4_FREE_BLOCKS_METADATA,
inode, tbh, block + i);
Expand Down

0 comments on commit 2dd71bd

Please sign in to comment.