diff options
author | Josef Bacik <josef@toxicpanda.com> | 2017-09-29 15:43:56 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-10-30 12:28:00 +0100 |
commit | c1103f7a5d7a544dfdaca6102de68792909dc834 (patch) | |
tree | d2a1305a69deda2a95f8fcdce39df555ceaf9367 /include/trace/events/btrfs.h | |
parent | 1ce7a5ec44c8b148c4600e25c696a135319734db (diff) |
btrfs: move all ref head cleanup to the helper function
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 it handles the !ref case a lot cleaner,
as well as making run_one_delayed_ref() only deal with real refs and not
the ref head.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/trace/events/btrfs.h')
0 files changed, 0 insertions, 0 deletions