Skip to content

Commit

Permalink
Btrfs: drop the delalloc_bytes check in shrink_delalloc
Browse files Browse the repository at this point in the history
Even when delalloc_bytes is zero, we may need to sleep while waiting
for delalloc space.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason committed Jun 13, 2011
1 parent ac08aed commit f4c4401
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3314,10 +3314,6 @@ 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 f4c4401

Please sign in to comment.