locked_ref 1898 fs/btrfs/extent-tree.c struct btrfs_delayed_ref_head *locked_ref, locked_ref 1910 fs/btrfs/extent-tree.c lockdep_assert_held(&locked_ref->mutex); locked_ref 1911 fs/btrfs/extent-tree.c lockdep_assert_held(&locked_ref->lock); locked_ref 1913 fs/btrfs/extent-tree.c while ((ref = select_delayed_ref(locked_ref))) { locked_ref 1916 fs/btrfs/extent-tree.c spin_unlock(&locked_ref->lock); locked_ref 1917 fs/btrfs/extent-tree.c unselect_delayed_ref_head(delayed_refs, locked_ref); locked_ref 1923 fs/btrfs/extent-tree.c rb_erase_cached(&ref->ref_node, &locked_ref->ref_tree); locked_ref 1934 fs/btrfs/extent-tree.c locked_ref->ref_mod -= ref->ref_mod; locked_ref 1937 fs/btrfs/extent-tree.c locked_ref->ref_mod += ref->ref_mod; locked_ref 1948 fs/btrfs/extent-tree.c must_insert_reserved = locked_ref->must_insert_reserved; locked_ref 1949 fs/btrfs/extent-tree.c locked_ref->must_insert_reserved = 0; locked_ref 1951 fs/btrfs/extent-tree.c extent_op = locked_ref->extent_op; locked_ref 1952 fs/btrfs/extent-tree.c locked_ref->extent_op = NULL; locked_ref 1953 fs/btrfs/extent-tree.c spin_unlock(&locked_ref->lock); locked_ref 1960 fs/btrfs/extent-tree.c unselect_delayed_ref_head(delayed_refs, locked_ref); locked_ref 1970 fs/btrfs/extent-tree.c spin_lock(&locked_ref->lock); locked_ref 1971 fs/btrfs/extent-tree.c btrfs_merge_delayed_refs(trans, delayed_refs, locked_ref); locked_ref 1986 fs/btrfs/extent-tree.c struct btrfs_delayed_ref_head *locked_ref = NULL; locked_ref 1994 fs/btrfs/extent-tree.c if (!locked_ref) { locked_ref 1995 fs/btrfs/extent-tree.c locked_ref = btrfs_obtain_ref_head(trans); locked_ref 1996 fs/btrfs/extent-tree.c if (IS_ERR_OR_NULL(locked_ref)) { locked_ref 1997 fs/btrfs/extent-tree.c if (PTR_ERR(locked_ref) == -EAGAIN) { locked_ref 2017 fs/btrfs/extent-tree.c spin_lock(&locked_ref->lock); locked_ref 2018 fs/btrfs/extent-tree.c btrfs_merge_delayed_refs(trans, delayed_refs, locked_ref); locked_ref 2020 fs/btrfs/extent-tree.c ret = btrfs_run_delayed_refs_for_head(trans, locked_ref, locked_ref 2033 fs/btrfs/extent-tree.c ret = cleanup_ref_head(trans, locked_ref); locked_ref 2048 fs/btrfs/extent-tree.c locked_ref = NULL; locked_ref 2050 fs/btrfs/extent-tree.c } while ((nr != -1 && count < nr) || locked_ref);