Btrfs: move the extent buffer radix tree into the fs_info
authorJosef Bacik <jbacik@fb.com>
Mon, 16 Dec 2013 18:24:27 +0000 (13:24 -0500)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:55 +0000 (13:19 -0800)
commitf28491e0a6c46d99cbbef0f8ef7e314afa2359c8
tree4a64b0042fbdd784a4dd2e038d9e3833f69bab7a
parent34b41acec1ccc06373ec584de19618d48ceb09fc
Btrfs: move the extent buffer radix tree into the fs_info

I need to create a fake tree to test qgroups and I don't want to have to setup a
fake btree_inode.  The fact is we only use the radix tree for the fs_info, so
everybody else who allocates an extent_io_tree is just wasting the space anyway.
This patch moves the radix tree and its lock into btrfs_fs_info so there is less
stuff I have to fake to do qgroup sanity tests.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h