aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-08-08 20:17:12 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-08-08 20:17:12 -0400
commit26b8003f10569a9155b7539ef5a7379ee0c6b050 (patch)
tree22d788e74199629ca4deb2d5774fd3e5b9ef748a /fs/btrfs/transaction.c
parentf4468e94c86c2031f447788c4bfe7dfd2fcdc93a (diff)
downloadkernel_samsung_smdk4412-26b8003f10569a9155b7539ef5a7379ee0c6b050.zip
kernel_samsung_smdk4412-26b8003f10569a9155b7539ef5a7379ee0c6b050.tar.gz
kernel_samsung_smdk4412-26b8003f10569a9155b7539ef5a7379ee0c6b050.tar.bz2
Btrfs: Replace extent tree preallocation code with some bit radix magic.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r--fs/btrfs/transaction.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 88b0752..e64ecec 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -109,6 +109,8 @@ struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
h->blocks_reserved = num_blocks;
h->blocks_used = 0;
h->block_group = NULL;
+ h->alloc_exclude_nr = 0;
+ h->alloc_exclude_start = 0;
root->fs_info->running_transaction->use_count++;
mutex_unlock(&root->fs_info->trans_mutex);
return h;