Lines Matching full:exist
1013 struct ceph_snapid_map *sm, *exist; in ceph_get_snapid_map() local
1017 exist = NULL; in ceph_get_snapid_map()
1021 exist = rb_entry(*p, struct ceph_snapid_map, node); in ceph_get_snapid_map()
1022 if (snap > exist->snap) { in ceph_get_snapid_map()
1024 } else if (snap < exist->snap) { in ceph_get_snapid_map()
1027 if (atomic_inc_return(&exist->ref) == 1) in ceph_get_snapid_map()
1028 list_del_init(&exist->lru); in ceph_get_snapid_map()
1031 exist = NULL; in ceph_get_snapid_map()
1034 if (exist) { in ceph_get_snapid_map()
1035 dout("found snapid map %llx -> %x\n", exist->snap, exist->dev); in ceph_get_snapid_map()
1036 return exist; in ceph_get_snapid_map()
1053 exist = NULL; in ceph_get_snapid_map()
1059 exist = rb_entry(*p, struct ceph_snapid_map, node); in ceph_get_snapid_map()
1060 if (snap > exist->snap) in ceph_get_snapid_map()
1062 else if (snap < exist->snap) in ceph_get_snapid_map()
1066 exist = NULL; in ceph_get_snapid_map()
1068 if (exist) { in ceph_get_snapid_map()
1069 if (atomic_inc_return(&exist->ref) == 1) in ceph_get_snapid_map()
1070 list_del_init(&exist->lru); in ceph_get_snapid_map()
1076 if (exist) { in ceph_get_snapid_map()
1079 dout("found snapid map %llx -> %x\n", exist->snap, exist->dev); in ceph_get_snapid_map()
1080 return exist; in ceph_get_snapid_map()