diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-10-03 12:24:01 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-10-03 12:24:01 -0400 |
commit | 30c43e2444c16afe3b2130f40ad273541bf3dc36 (patch) | |
tree | d15296f70f1a66c0248008bfa77494593f28f2a2 /fs/btrfs/extent-tree.c | |
parent | cb843a6f513a1a91c54951005e60bd9b95bdf973 (diff) |
Btrfs: remove last_log_alloc allocator optimization
The tree logging code was trying to separate tree log allocations
from normal metadata allocations to improve writeback patterns during
an fsync.
But, the code was not effective and ended up just mixing tree log
blocks with regular metadata. That seems to be working fairly well,
so the last_log_alloc code can be removed.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index db37b867e4f..29380467b67 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -2228,13 +2228,6 @@ static int noinline find_free_extent(struct btrfs_trans_handle *trans, | |||
2228 | if ((data & BTRFS_BLOCK_GROUP_DATA) && btrfs_test_opt(root, SSD)) | 2228 | if ((data & BTRFS_BLOCK_GROUP_DATA) && btrfs_test_opt(root, SSD)) |
2229 | last_ptr = &root->fs_info->last_data_alloc; | 2229 | last_ptr = &root->fs_info->last_data_alloc; |
2230 | 2230 | ||
2231 | if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { | ||
2232 | last_ptr = &root->fs_info->last_log_alloc; | ||
2233 | if (!last_ptr == 0 && root->fs_info->last_alloc) { | ||
2234 | *last_ptr = root->fs_info->last_alloc + empty_cluster; | ||
2235 | } | ||
2236 | } | ||
2237 | |||
2238 | if (last_ptr) { | 2231 | if (last_ptr) { |
2239 | if (*last_ptr) | 2232 | if (*last_ptr) |
2240 | hint_byte = *last_ptr; | 2233 | hint_byte = *last_ptr; |