Btrfs: free space cache cleanups
commit70cb074345832b75cf422ed729706345511773b3
authorJosef Bacik <jbacik@redhat.com>
Fri, 3 Apr 2009 14:14:19 +0000 (3 10:14 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 3 Apr 2009 14:14:19 +0000 (3 10:14 -0400)
tree37f23796751a20feff12f935568d4f5fff33b3fc
parentbedf762ba3a4b70295661fa70c29c1f18fe0f351
Btrfs: free space cache cleanups

This patch cleans up the free space cache code a bit.  It better documents the
idiosyncrasies of tree_search_offset and makes the code make a bit more sense.
I took out the info allocation at the start of __btrfs_add_free_space and put it
where it makes more sense.  This was left over cruft from when alloc_mutex
existed.  Also all of the re-searches we do to make sure we inserted properly.

Signed-off-by: Josef Bacik <jbacik@redhat.com>
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c