aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-06-13 11:30:47 -0400
committerChris Mason <chris.mason@oracle.com>2011-06-13 11:30:47 -0400
commitf4c44016218a6fce357715b9bbabbbbe1f69853c (patch)
treeeb091e38b620a174d14e194964707c530bacbd0e /fs/btrfs
parentac08aedfa5d3de0dcb3825b598d16c2e57991f54 (diff)
downloadkernel_samsung_aries-f4c44016218a6fce357715b9bbabbbbe1f69853c.zip
kernel_samsung_aries-f4c44016218a6fce357715b9bbabbbbe1f69853c.tar.gz
kernel_samsung_aries-f4c44016218a6fce357715b9bbabbbbe1f69853c.tar.bz2
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/btrfs')
-rw-r--r--fs/btrfs/extent-tree.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index b42efc2..1f61bf5 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) {