Re: [PATCH 12/21] btrfs: move all ref head cleanup to the helper function

2017-10-13 Thread David Sterba
On Fri, Sep 29, 2017 at 03:43:56PM -0400, Josef Bacik wrote: > We do a couple different cleanup operations on the ref head. We adjust > counters, we'll free any reserved space if we didn't end up using the > ref, and we clear the pending csum bytes. Move all these disparate > things into cleanup_

[PATCH 12/21] btrfs: move all ref head cleanup to the helper function

2017-09-29 Thread Josef Bacik
We do a couple different cleanup operations on the ref head. We adjust counters, we'll free any reserved space if we didn't end up using the ref, and we clear the pending csum bytes. Move all these disparate things into cleanup_ref_head and clean up the logic in __btrfs_run_delayed_refs so that i