summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik2009-04-03 16:14:19 +0200
committerChris Mason2009-04-03 16:14:19 +0200
commit2552d17e328044d1811cae733087a1fb9aac2eb6 (patch)
tree21101d10ccfa4f44d150bc570c2080160e332305 /fs/btrfs/ctree.h
parentBtrfs: free space cache cleanups (diff)
downloadkernel-qcow2-linux-2552d17e328044d1811cae733087a1fb9aac2eb6.tar.gz
kernel-qcow2-linux-2552d17e328044d1811cae733087a1fb9aac2eb6.tar.xz
kernel-qcow2-linux-2552d17e328044d1811cae733087a1fb9aac2eb6.zip
Btrfs: clean up find_free_extent
I've replaced the strange looping constructs with a list_for_each_entry on space_info->block_groups. If we have a hint we just jump into the loop with the block group and start looking for space. If we don't find anything we start at the beginning and start looking. We never come out of the loop with a ref on the block_group _unless_ we found space to use, then we drop it after we set the trans block_group. Signed-off-by: Josef Bacik <jbacik@redhat.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions