Lines Matching refs:parent
90 struct rb_node *parent = NULL; in __insert_snap_realm() local
94 parent = *p; in __insert_snap_realm()
95 r = rb_entry(parent, struct ceph_snap_realm, node); in __insert_snap_realm()
104 rb_link_node(&new->node, parent, p); in __insert_snap_realm()
198 if (realm->parent) { in __destroy_snap_realm()
200 __put_snap_realm(mdsc, realm->parent); in __destroy_snap_realm()
293 struct ceph_snap_realm *parent; in adjust_snap_realm_parent() local
300 parent = ceph_lookup_snap_realm(mdsc, parentino); in adjust_snap_realm_parent()
301 if (!parent) { in adjust_snap_realm_parent()
302 parent = ceph_create_snap_realm(mdsc, parentino); in adjust_snap_realm_parent()
303 if (IS_ERR(parent)) in adjust_snap_realm_parent()
304 return PTR_ERR(parent); in adjust_snap_realm_parent()
307 realm, realm->parent_ino, realm->parent, parentino, parent); in adjust_snap_realm_parent()
308 if (realm->parent) { in adjust_snap_realm_parent()
310 ceph_put_snap_realm(mdsc, realm->parent); in adjust_snap_realm_parent()
313 realm->parent = parent; in adjust_snap_realm_parent()
314 list_add(&realm->child_item, &parent->children); in adjust_snap_realm_parent()
337 struct ceph_snap_realm *parent = realm->parent; in build_snap_context() local
347 if (parent) { in build_snap_context()
348 if (!parent->cached_context) { in build_snap_context()
350 list_add(&parent->rebuild_item, realm_queue); in build_snap_context()
353 num += parent->cached_context->num_snaps; in build_snap_context()
362 (!parent || in build_snap_context()
363 realm->cached_context->seq >= parent->cached_context->seq)) { in build_snap_context()
382 if (parent) { in build_snap_context()
387 for (i = 0; i < parent->cached_context->num_snaps; i++) in build_snap_context()
388 if (parent->cached_context->snaps[i] >= in build_snap_context()
391 parent->cached_context->snaps[i]; in build_snap_context()
392 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
393 snapc->seq = parent->cached_context->seq; in build_snap_context()
811 err = adjust_snap_realm_parent(mdsc, realm, le64_to_cpu(ri->parent)); in ceph_update_snap_trace()
1178 struct rb_node **p, *parent; in ceph_get_snapid_map() local
1219 parent = NULL; in ceph_get_snapid_map()
1223 parent = *p; in ceph_get_snapid_map()
1237 rb_link_node(&sm->node, parent, p); in ceph_get_snapid_map()