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