Lines Matching defs:exist
1195 struct ceph_snapid_map *sm, *exist;
1199 exist = NULL;
1203 exist = rb_entry(*p, struct ceph_snapid_map, node);
1204 if (snap > exist->snap) {
1206 } else if (snap < exist->snap) {
1209 if (atomic_inc_return(&exist->ref) == 1)
1210 list_del_init(&exist->lru);
1213 exist = NULL;
1216 if (exist) {
1217 doutc(cl, "found snapid map %llx -> %x\n", exist->snap,
1218 exist->dev);
1219 return exist;
1236 exist = NULL;
1242 exist = rb_entry(*p, struct ceph_snapid_map, node);
1243 if (snap > exist->snap)
1245 else if (snap < exist->snap)
1249 exist = NULL;
1251 if (exist) {
1252 if (atomic_inc_return(&exist->ref) == 1)
1253 list_del_init(&exist->lru);
1259 if (exist) {
1262 doutc(cl, "found snapid map %llx -> %x\n", exist->snap,
1263 exist->dev);
1264 return exist;