btrfs: breakout empty head cleanup to a helper
authorJosef Bacik <josef@toxicpanda.com>
Fri, 29 Sep 2017 19:43:54 +0000 (15:43 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:28:00 +0000 (12:28 +0100)
commit194ab0bc21cc99c5b804040aa785e0bdcc214656
tree7e8503565d76b2d4b84f930c09f50b369baa7bb5
parentb00e62507ec6a9b63d9b3019795584e694085b65
btrfs: breakout empty head cleanup to a helper

Move this code out to a helper function to further simplivy
__btrfs_run_delayed_refs.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c