Lines Matching full:exist
13 struct ceph_string *cs, *exist; in ceph_find_or_create_string() local
17 exist = NULL; in ceph_find_or_create_string()
21 exist = rb_entry(*p, struct ceph_string, node); in ceph_find_or_create_string()
22 ret = ceph_compare_string(exist, str, len); in ceph_find_or_create_string()
29 exist = NULL; in ceph_find_or_create_string()
31 if (exist && !kref_get_unless_zero(&exist->kref)) { in ceph_find_or_create_string()
32 rb_erase(&exist->node, &string_tree); in ceph_find_or_create_string()
33 RB_CLEAR_NODE(&exist->node); in ceph_find_or_create_string()
34 exist = NULL; in ceph_find_or_create_string()
37 if (exist) in ceph_find_or_create_string()
38 return exist; in ceph_find_or_create_string()
50 exist = NULL; in ceph_find_or_create_string()
56 exist = rb_entry(*p, struct ceph_string, node); in ceph_find_or_create_string()
57 ret = ceph_compare_string(exist, str, len); in ceph_find_or_create_string()
64 exist = NULL; in ceph_find_or_create_string()
67 if (!exist) { in ceph_find_or_create_string()
70 } else if (!kref_get_unless_zero(&exist->kref)) { in ceph_find_or_create_string()
71 rb_erase(&exist->node, &string_tree); in ceph_find_or_create_string()
72 RB_CLEAR_NODE(&exist->node); in ceph_find_or_create_string()
79 if (exist) { in ceph_find_or_create_string()
81 cs = exist; in ceph_find_or_create_string()