Lines Matching refs:exist
1058 struct ceph_snapid_map *sm, *exist; in ceph_get_snapid_map() local
1062 exist = NULL; in ceph_get_snapid_map()
1066 exist = rb_entry(*p, struct ceph_snapid_map, node); in ceph_get_snapid_map()
1067 if (snap > exist->snap) { in ceph_get_snapid_map()
1069 } else if (snap < exist->snap) { in ceph_get_snapid_map()
1072 if (atomic_inc_return(&exist->ref) == 1) in ceph_get_snapid_map()
1073 list_del_init(&exist->lru); in ceph_get_snapid_map()
1076 exist = NULL; in ceph_get_snapid_map()
1079 if (exist) { in ceph_get_snapid_map()
1080 dout("found snapid map %llx -> %x\n", exist->snap, exist->dev); in ceph_get_snapid_map()
1081 return exist; in ceph_get_snapid_map()
1098 exist = NULL; in ceph_get_snapid_map()
1104 exist = rb_entry(*p, struct ceph_snapid_map, node); in ceph_get_snapid_map()
1105 if (snap > exist->snap) in ceph_get_snapid_map()
1107 else if (snap < exist->snap) in ceph_get_snapid_map()
1111 exist = NULL; in ceph_get_snapid_map()
1113 if (exist) { in ceph_get_snapid_map()
1114 if (atomic_inc_return(&exist->ref) == 1) in ceph_get_snapid_map()
1115 list_del_init(&exist->lru); in ceph_get_snapid_map()
1121 if (exist) { in ceph_get_snapid_map()
1124 dout("found snapid map %llx -> %x\n", exist->snap, exist->dev); in ceph_get_snapid_map()
1125 return exist; in ceph_get_snapid_map()