]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/btrfs/extent-tree.c
Btrfs: remove last_log_alloc allocator optimization
[linux-2.6-omap-h63xx.git] / fs / btrfs / extent-tree.c
index db37b867e4f168089ba59d1e801a3637dd579e0b..29380467b6717b00da27ae651060856893d7c3ac 100644 (file)
@@ -2228,13 +2228,6 @@ static int noinline find_free_extent(struct btrfs_trans_handle *trans,
        if ((data & BTRFS_BLOCK_GROUP_DATA) && btrfs_test_opt(root, SSD))
                last_ptr = &root->fs_info->last_data_alloc;
 
-       if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) {
-               last_ptr = &root->fs_info->last_log_alloc;
-               if (!last_ptr == 0 && root->fs_info->last_alloc) {
-                       *last_ptr = root->fs_info->last_alloc + empty_cluster;
-               }
-       }
-
        if (last_ptr) {
                if (*last_ptr)
                        hint_byte = *last_ptr;