diff options
author | Josef Bacik <josef@redhat.com> | 2011-07-15 12:01:03 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-07-27 12:46:43 -0400 |
commit | a5991428064e98c7367fe1c1686ea6a23fb6a4b3 (patch) | |
tree | 4e063831c205d707bd1e85fb5814a95f61843dc8 /fs/btrfs | |
parent | a94733d0bc630edaedc6ca156752dd5a7cb82521 (diff) |
Btrfs: don't flush delalloc arbitrarily
Kill the check to see if we have 512mb of reserved space in delalloc and
shrink_delalloc if we do. This causes unexpected latencies and we have other
logic to see if we need to throttle. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 5ab31f70ff5b..0a5bd67e2894 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -3986,9 +3986,6 @@ int btrfs_delalloc_reserve_metadata(struct inode *inode, u64 num_bytes) | |||
3986 | 3986 | ||
3987 | block_rsv_add_bytes(block_rsv, to_reserve, 1); | 3987 | block_rsv_add_bytes(block_rsv, to_reserve, 1); |
3988 | 3988 | ||
3989 | if (block_rsv->size > 512 * 1024 * 1024) | ||
3990 | shrink_delalloc(NULL, root, to_reserve, 0); | ||
3991 | |||
3992 | return 0; | 3989 | return 0; |
3993 | } | 3990 | } |
3994 | 3991 | ||