On 30.08.2018 20:42, Josef Bacik wrote: > Instead of open coding this stuff use the helper instead. > > Signed-off-by: Josef Bacik <jo...@toxicpanda.com> Reviewed-by: Nikolay Borisov <nbori...@suse.com> > --- > fs/btrfs/disk-io.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c > index c72ab2ca7627..1d3f5731d616 100644 > --- a/fs/btrfs/disk-io.c > +++ b/fs/btrfs/disk-io.c > @@ -4232,12 +4232,7 @@ static int btrfs_destroy_delayed_refs(struct > btrfs_transaction *trans, > if (head->must_insert_reserved) > pin_bytes = true; > btrfs_free_delayed_extent_op(head->extent_op); > - delayed_refs->num_heads--; > - if (head->processing == 0) > - delayed_refs->num_heads_ready--; > - atomic_dec(&delayed_refs->num_entries); > - rb_erase(&head->href_node, &delayed_refs->href_root); > - RB_CLEAR_NODE(&head->href_node); > + btrfs_delete_ref_head(delayed_refs, head); > spin_unlock(&head->lock); > spin_unlock(&delayed_refs->lock); > mutex_unlock(&head->mutex); >
- [PATCH 20/35] btrfs: reset max_extent_size on clear in a b... Josef Bacik
- [PATCH 21/35] btrfs: only run delayed refs if we're commit... Josef Bacik
- Re: [PATCH 21/35] btrfs: only run delayed refs if we'... Omar Sandoval
- [PATCH 23/35] btrfs: assert on non-empty delayed iputs Josef Bacik
- Re: [PATCH 23/35] btrfs: assert on non-empty delayed ... Omar Sandoval
- [PATCH 24/35] btrfs: pass delayed_refs_root to btrfs_delay... Josef Bacik
- Re: [PATCH 24/35] btrfs: pass delayed_refs_root to bt... Nikolay Borisov
- [PATCH 25/35] btrfs: make btrfs_destroy_delayed_refs use b... Josef Bacik
- Re: [PATCH 25/35] btrfs: make btrfs_destroy_delayed_r... Nikolay Borisov
- [PATCH 26/35] btrfs: make btrfs_destroy_delayed_refs use b... Josef Bacik
- Re: [PATCH 26/35] btrfs: make btrfs_destroy_delayed_r... Nikolay Borisov
- [PATCH 18/35] btrfs: set max_extent_size properly Josef Bacik
- [PATCH 29/35] btrfs: just delete pending bgs if we are abo... Josef Bacik
- Re: [PATCH 29/35] btrfs: just delete pending bgs if w... Nikolay Borisov
- Re: [PATCH 29/35] btrfs: just delete pending bgs if w... Omar Sandoval
- [PATCH 30/35] btrfs: cleanup pending bgs on transaction ab... Josef Bacik
- Re: [PATCH 30/35] btrfs: cleanup pending bgs on trans... Nikolay Borisov
- Re: [PATCH 30/35] btrfs: cleanup pending bgs on trans... Omar Sandoval
- [PATCH 12/35] btrfs: add ALLOC_CHUNK_FORCE to the flushing... Josef Bacik