Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252326
b: refs/heads/master
c: c4f675c
h: refs/heads/master
v: v3
  • Loading branch information
Sergei Trofimovich authored and Chris Mason committed May 23, 2011
1 parent b751af1 commit 6fba2bd
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 0f3b708c11914b684d17fed975eed19db902a8de
refs/heads/master: c4f675cd40d955d539180506c09515c90169b15b
4 changes: 4 additions & 0 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3425,6 +3425,10 @@ static int shrink_delalloc(struct btrfs_trans_handle *trans,
if (reserved == 0)
return 0;

/* nothing to shrink - nothing to reclaim */
if (root->fs_info->delalloc_bytes == 0)
return 0;

max_reclaim = min(reserved, to_reclaim);

while (loops < 1024) {
Expand Down

0 comments on commit 6fba2bd

Please sign in to comment.