Commit f4c44016 authored by Chris Mason's avatar Chris Mason

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: default avatarChris Mason <chris.mason@oracle.com>
parent ac08aedf
...@@ -3314,10 +3314,6 @@ static int shrink_delalloc(struct btrfs_trans_handle *trans, ...@@ -3314,10 +3314,6 @@ static int shrink_delalloc(struct btrfs_trans_handle *trans,
if (reserved == 0) if (reserved == 0)
return 0; return 0;
/* nothing to shrink - nothing to reclaim */
if (root->fs_info->delalloc_bytes == 0)
return 0;
max_reclaim = min(reserved, to_reclaim); max_reclaim = min(reserved, to_reclaim);
while (loops < 1024) { while (loops < 1024) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment