summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ref-cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-03-08 14:07:53 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-08 14:07:53 -0800
commit51d0f6d1f50349579f007adf5c0b51aaedd93b94 (patch)
tree6ea3f2683c3017d63101e708309665727eb2a7cc /fs/btrfs/ref-cache.h
parent57d54889cd00db2752994b389ba714138652e60c (diff)
parentda495ecc0fb096b383754952a1c152147bc95b52 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable
* git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable: Btrfs: kfree correct pointer during mount option parsing Btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL
Diffstat (limited to 'fs/btrfs/ref-cache.h')
-rw-r--r--fs/btrfs/ref-cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ref-cache.h b/fs/btrfs/ref-cache.h
index bc283ad2db7..e2a55cb2072 100644
--- a/fs/btrfs/ref-cache.h
+++ b/fs/btrfs/ref-cache.h
@@ -52,7 +52,7 @@ static inline size_t btrfs_leaf_ref_size(int nr_extents)
static inline void btrfs_leaf_ref_tree_init(struct btrfs_leaf_ref_tree *tree)
{
- tree->root.rb_node = NULL;
+ tree->root = RB_ROOT;
INIT_LIST_HEAD(&tree->list);
spin_lock_init(&tree->lock);
}