diff options
author | Josef Bacik <jbacik@redhat.com> | 2009-04-03 10:14:19 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-04-03 10:14:19 -0400 |
commit | 70cb074345832b75cf422ed729706345511773b3 (patch) | |
tree | 37f23796751a20feff12f935568d4f5fff33b3fc /fs/btrfs/extent-tree.c | |
parent | bedf762ba3a4b70295661fa70c29c1f18fe0f351 (diff) |
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>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index f5e7cae63d80..2c214781fee6 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -291,8 +291,8 @@ next: | |||
291 | block_group->key.objectid + | 291 | block_group->key.objectid + |
292 | block_group->key.offset); | 292 | block_group->key.offset); |
293 | 293 | ||
294 | remove_sb_from_cache(root, block_group); | ||
295 | block_group->cached = 1; | 294 | block_group->cached = 1; |
295 | remove_sb_from_cache(root, block_group); | ||
296 | ret = 0; | 296 | ret = 0; |
297 | err: | 297 | err: |
298 | btrfs_free_path(path); | 298 | btrfs_free_path(path); |