btrfs: cleanup extent_op handling
authorJosef Bacik <jbacik@fb.com>
Mon, 3 Dec 2018 15:20:31 +0000 (10:20 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:46 +0000 (14:51 +0100)
commitbedc661760a9837d592070669b296ab58e8f40c9
treeee10171a2963c617f9359dbedc9475cef353f4b1
parent07c47775f410168c259494ecb8f62cee0a84ec81
btrfs: cleanup extent_op handling

The cleanup_extent_op function actually would run the extent_op if it
needed running, which made the name sort of a misnomer.  Change it to
run_and_cleanup_extent_op, and move the actual cleanup work to
cleanup_extent_op so it can be used by check_ref_cleanup() in order to
unify the extent op handling.

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