aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-10-03 12:24:01 -0400
committerChris Mason <chris.mason@oracle.com>2008-10-03 12:24:01 -0400
commit30c43e2444c16afe3b2130f40ad273541bf3dc36 (patch)
treed15296f70f1a66c0248008bfa77494593f28f2a2 /fs/btrfs/transaction.c
parentcb843a6f513a1a91c54951005e60bd9b95bdf973 (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/transaction.c')
-rw-r--r--fs/btrfs/transaction.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 11266d68a6c9..5ecc24d634a2 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -61,7 +61,6 @@ static noinline int join_transaction(struct btrfs_root *root)
61 root->fs_info->generation++; 61 root->fs_info->generation++;
62 root->fs_info->last_alloc = 0; 62 root->fs_info->last_alloc = 0;
63 root->fs_info->last_data_alloc = 0; 63 root->fs_info->last_data_alloc = 0;
64 root->fs_info->last_log_alloc = 0;
65 cur_trans->num_writers = 1; 64 cur_trans->num_writers = 1;
66 cur_trans->num_joined = 0; 65 cur_trans->num_joined = 0;
67 cur_trans->transid = root->fs_info->generation; 66 cur_trans->transid = root->fs_info->generation;