Lines Matching refs:delayed_refs
4830 struct btrfs_delayed_ref_root *delayed_refs; in btrfs_destroy_delayed_refs() local
4834 delayed_refs = &trans->delayed_refs; in btrfs_destroy_delayed_refs()
4836 spin_lock(&delayed_refs->lock); in btrfs_destroy_delayed_refs()
4837 if (atomic_read(&delayed_refs->num_entries) == 0) { in btrfs_destroy_delayed_refs()
4838 spin_unlock(&delayed_refs->lock); in btrfs_destroy_delayed_refs()
4843 while ((node = rb_first_cached(&delayed_refs->href_root)) != NULL) { in btrfs_destroy_delayed_refs()
4850 if (btrfs_delayed_ref_lock(delayed_refs, head)) in btrfs_destroy_delayed_refs()
4862 atomic_dec(&delayed_refs->num_entries); in btrfs_destroy_delayed_refs()
4868 btrfs_delete_ref_head(delayed_refs, head); in btrfs_destroy_delayed_refs()
4870 spin_unlock(&delayed_refs->lock); in btrfs_destroy_delayed_refs()
4894 btrfs_cleanup_ref_head_accounting(fs_info, delayed_refs, head); in btrfs_destroy_delayed_refs()
4897 spin_lock(&delayed_refs->lock); in btrfs_destroy_delayed_refs()
4901 spin_unlock(&delayed_refs->lock); in btrfs_destroy_delayed_refs()