]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Btrfs: drop the delalloc_bytes check in shrink_delalloc
authorChris Mason <chris.mason@oracle.com>
Mon, 13 Jun 2011 15:30:47 +0000 (11:30 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 13 Jun 2011 15:30:47 +0000 (11:30 -0400)
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>
fs/btrfs/extent-tree.c

index b42efc2ded513ec10c38eb7ebcee9247d2f2c825..1f61bf5b4960404b063ddc4ab0587970687321d0 100644 (file)
@@ -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) {