Lines Matching full:exist
29 * These are meant to represent what should exist in the extent tree, these can
267 struct block_entry *be = NULL, *exist; in add_block_entry() local
284 exist = insert_block_entry(&fs_info->block_tree, be); in add_block_entry()
285 if (exist) { in add_block_entry()
289 exist_re = insert_root_entry(&exist->roots, re); in add_block_entry()
296 return exist; in add_block_entry()
317 struct ref_entry *ref = NULL, *exist; in add_tree_block() local
347 exist = insert_ref_entry(&be->refs, ref); in add_tree_block()
348 if (exist) { in add_tree_block()
349 exist->num_refs++; in add_tree_block()
673 struct ref_entry *ref = NULL, *exist; in btrfs_ref_tree_mod() local
825 exist = insert_ref_entry(&be->refs, ref); in btrfs_ref_tree_mod()
826 if (exist) { in btrfs_ref_tree_mod()
828 if (exist->num_refs == 0) { in btrfs_ref_tree_mod()
837 exist->num_refs--; in btrfs_ref_tree_mod()
838 if (exist->num_refs == 0) { in btrfs_ref_tree_mod()
839 rb_erase(&exist->node, &be->refs); in btrfs_ref_tree_mod()
840 kfree(exist); in btrfs_ref_tree_mod()
843 exist->num_refs++; in btrfs_ref_tree_mod()