diff options
author | Chris Mason <chris.mason@oracle.com> | 2011-06-13 17:30:47 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-06-13 17:30:47 +0200 |
commit | f4c44016218a6fce357715b9bbabbbbe1f69853c (patch) | |
tree | eb091e38b620a174d14e194964707c530bacbd0e /fs | |
parent | Btrfs: check the return value from set_anon_super (diff) | |
download | linux-f4c44016218a6fce357715b9bbabbbbe1f69853c.tar.xz linux-f4c44016218a6fce357715b9bbabbbbe1f69853c.zip |
Btrfs: drop the delalloc_bytes check in shrink_delalloc
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index b42efc2ded51..1f61bf5b4960 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -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) { |