]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita35dedb115736655c865c0fb6fe3e8426239888d
tree4a64b0042fbdd784a4dd2e038d9e3833f69bab7a
parent985e0f5ec0059828de94e28487f6eabad0679c18
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