Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114879
b: refs/heads/master
c: d707d31
h: refs/heads/master
i:
  114877: 7078b0f
  114875: e5f9595
  114871: 51f02e7
  114863: 62bd152
  114847: 988b9ea
  114815: b3dad57
v: v3
  • Loading branch information
Mingming Cao authored and Linus Torvalds committed Oct 16, 2008
1 parent 850246e commit 17bbd3f
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 60836eb63b941f407dc2a609f3f0f34fd74ef6c3
refs/heads/master: d707d31c972b657dfc2efefd0b99cc4e14223dab
3 changes: 2 additions & 1 deletion trunk/fs/ext2/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal,
* turn off reservation for this allocation
*/
if (my_rsv && (free_blocks < windowsz)
&& (free_blocks > 0)
&& (rsv_is_empty(&my_rsv->rsv_window)))
my_rsv = NULL;

Expand Down Expand Up @@ -1332,7 +1333,7 @@ ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal,
* free blocks is less than half of the reservation
* window size.
*/
if (free_blocks <= (windowsz/2))
if (my_rsv && (free_blocks <= (windowsz/2)))
continue;

brelse(bitmap_bh);
Expand Down

0 comments on commit 17bbd3f

Please sign in to comment.