Lines Matching full:exist
1192 struct ceph_snapid_map *sm, *exist; in ceph_get_snapid_map() local
1196 exist = NULL; in ceph_get_snapid_map()
1200 exist = rb_entry(*p, struct ceph_snapid_map, node); in ceph_get_snapid_map()
1201 if (snap > exist->snap) { in ceph_get_snapid_map()
1203 } else if (snap < exist->snap) { in ceph_get_snapid_map()
1206 if (atomic_inc_return(&exist->ref) == 1) in ceph_get_snapid_map()
1207 list_del_init(&exist->lru); in ceph_get_snapid_map()
1210 exist = NULL; in ceph_get_snapid_map()
1213 if (exist) { in ceph_get_snapid_map()
1214 doutc(cl, "found snapid map %llx -> %x\n", exist->snap, in ceph_get_snapid_map()
1215 exist->dev); in ceph_get_snapid_map()
1216 return exist; in ceph_get_snapid_map()
1233 exist = NULL; in ceph_get_snapid_map()
1239 exist = rb_entry(*p, struct ceph_snapid_map, node); in ceph_get_snapid_map()
1240 if (snap > exist->snap) in ceph_get_snapid_map()
1242 else if (snap < exist->snap) in ceph_get_snapid_map()
1246 exist = NULL; in ceph_get_snapid_map()
1248 if (exist) { in ceph_get_snapid_map()
1249 if (atomic_inc_return(&exist->ref) == 1) in ceph_get_snapid_map()
1250 list_del_init(&exist->lru); in ceph_get_snapid_map()
1256 if (exist) { in ceph_get_snapid_map()
1259 doutc(cl, "found snapid map %llx -> %x\n", exist->snap, in ceph_get_snapid_map()
1260 exist->dev); in ceph_get_snapid_map()
1261 return exist; in ceph_get_snapid_map()