Lines Matching refs:exist
407 struct btrfs_delayed_ref_node *exist; in insert_delayed_ref() local
412 exist = tree_insert(&href->ref_tree, ref); in insert_delayed_ref()
413 if (!exist) in insert_delayed_ref()
418 if (exist->action == ref->action) { in insert_delayed_ref()
422 if (exist->ref_mod < ref->ref_mod) { in insert_delayed_ref()
423 exist->action = ref->action; in insert_delayed_ref()
424 mod = -exist->ref_mod; in insert_delayed_ref()
425 exist->ref_mod = ref->ref_mod; in insert_delayed_ref()
427 list_add_tail(&exist->add_list, in insert_delayed_ref()
430 ASSERT(!list_empty(&exist->add_list)); in insert_delayed_ref()
431 list_del(&exist->add_list); in insert_delayed_ref()
438 exist->ref_mod += mod; in insert_delayed_ref()
441 if (exist->ref_mod == 0) in insert_delayed_ref()
442 drop_delayed_ref(trans, root, href, exist); in insert_delayed_ref()