Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242361
b: refs/heads/master
c: 84b775a
h: refs/heads/master
i:
  242359: 8079f13
v: v3
  • Loading branch information
Coly Li authored and Theodore Ts'o committed Feb 24, 2011
1 parent 10ee6c1 commit a480c72
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: ea6633369458992241599c9d9ebadffaeddec164
refs/heads/master: 84b775a354f640736176b5d966408fc5d5da6665
5 changes: 3 additions & 2 deletions trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,10 @@ static void *mb_find_buddy(struct ext4_buddy *e4b, int order, int *max)
}

/* at order 0 we see each particular block */
*max = 1 << (e4b->bd_blkbits + 3);
if (order == 0)
if (order == 0) {
*max = 1 << (e4b->bd_blkbits + 3);
return EXT4_MB_BITMAP(e4b);
}

bb = EXT4_MB_BUDDY(e4b) + EXT4_SB(e4b->bd_sb)->s_mb_offsets[order];
*max = EXT4_SB(e4b->bd_sb)->s_mb_maxs[order];
Expand Down

0 comments on commit a480c72

Please sign in to comment.