btrfs: move extent_op cleanup to a helper
authorJosef Bacik <josef@toxicpanda.com>
Fri, 29 Sep 2017 19:43:53 +0000 (15:43 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:28:00 +0000 (12:28 +0100)
commitb00e62507ec6a9b63d9b3019795584e694085b65
tree3b20d292b0d69f66c77cac1998f1777e4dc44b55
parent2eadaa22c17ac3c546850f70d9d20fa19459dbce
btrfs: move extent_op cleanup to a helper

Move the extent_op cleanup for an empty head ref to a helper function to
help simplify __btrfs_run_delayed_refs.

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