Lines Matching refs:parent
86 struct rb_node *parent = NULL; in __insert_snap_realm() local
90 parent = *p; in __insert_snap_realm()
91 r = rb_entry(parent, struct ceph_snap_realm, node); in __insert_snap_realm()
100 rb_link_node(&new->node, parent, p); in __insert_snap_realm()
170 if (realm->parent) { in __destroy_snap_realm()
172 __put_snap_realm(mdsc, realm->parent); in __destroy_snap_realm()
256 struct ceph_snap_realm *parent; in adjust_snap_realm_parent() local
261 parent = ceph_lookup_snap_realm(mdsc, parentino); in adjust_snap_realm_parent()
262 if (!parent) { in adjust_snap_realm_parent()
263 parent = ceph_create_snap_realm(mdsc, parentino); in adjust_snap_realm_parent()
264 if (IS_ERR(parent)) in adjust_snap_realm_parent()
265 return PTR_ERR(parent); in adjust_snap_realm_parent()
268 realm->ino, realm, realm->parent_ino, realm->parent, in adjust_snap_realm_parent()
269 parentino, parent); in adjust_snap_realm_parent()
270 if (realm->parent) { in adjust_snap_realm_parent()
272 ceph_put_snap_realm(mdsc, realm->parent); in adjust_snap_realm_parent()
275 realm->parent = parent; in adjust_snap_realm_parent()
276 ceph_get_snap_realm(mdsc, parent); in adjust_snap_realm_parent()
277 list_add(&realm->child_item, &parent->children); in adjust_snap_realm_parent()
296 struct ceph_snap_realm *parent = realm->parent; in build_snap_context() local
307 if (parent) { in build_snap_context()
308 if (!parent->cached_context) { in build_snap_context()
309 err = build_snap_context(parent); in build_snap_context()
313 num += parent->cached_context->num_snaps; in build_snap_context()
322 (!parent || in build_snap_context()
323 realm->cached_context->seq >= parent->cached_context->seq)) { in build_snap_context()
344 if (parent) { in build_snap_context()
347 for (i = 0; i < parent->cached_context->num_snaps; i++) in build_snap_context()
348 if (parent->cached_context->snaps[i] >= in build_snap_context()
351 parent->cached_context->snaps[i]; in build_snap_context()
352 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
353 snapc->seq = parent->cached_context->seq; in build_snap_context()
653 err = adjust_snap_realm_parent(mdsc, realm, le64_to_cpu(ri->parent)); in ceph_update_snap_trace()