Skip to content
Commit 70cb0743 authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason
Browse files

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: default avatarJosef Bacik <jbacik@redhat.com>
parent bedf762b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment