From: Chris Mason Date: Mon, 13 Jun 2011 15:30:47 +0000 (-0400) Subject: Btrfs: drop the delalloc_bytes check in shrink_delalloc X-Git-Tag: v3.0-rc4~9^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4c44016218a6fce357715b9bbabbbbe1f69853c;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 --- 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) {