Lines Matching full:exist
26 * These are meant to represent what should exist in the extent tree, these can
264 struct block_entry *be = NULL, *exist; in add_block_entry() local
281 exist = insert_block_entry(&fs_info->block_tree, be); in add_block_entry()
282 if (exist) { in add_block_entry()
286 exist_re = insert_root_entry(&exist->roots, re); in add_block_entry()
293 return exist; in add_block_entry()
314 struct ref_entry *ref = NULL, *exist; in add_tree_block() local
344 exist = insert_ref_entry(&be->refs, ref); in add_tree_block()
345 if (exist) { in add_tree_block()
346 exist->num_refs++; in add_tree_block()
662 struct ref_entry *ref = NULL, *exist; in btrfs_ref_tree_mod() local
812 exist = insert_ref_entry(&be->refs, ref); in btrfs_ref_tree_mod()
813 if (exist) { in btrfs_ref_tree_mod()
815 if (exist->num_refs == 0) { in btrfs_ref_tree_mod()
824 exist->num_refs--; in btrfs_ref_tree_mod()
825 if (exist->num_refs == 0) { in btrfs_ref_tree_mod()
826 rb_erase(&exist->node, &be->refs); in btrfs_ref_tree_mod()
827 kfree(exist); in btrfs_ref_tree_mod()
830 exist->num_refs++; in btrfs_ref_tree_mod()