Lines Matching refs:cached_context
199 ceph_put_snap_context(realm->cached_context); in __destroy_snap_realm()
336 if (!parent->cached_context) { in build_snap_context()
341 num += parent->cached_context->num_snaps; in build_snap_context()
348 if (realm->cached_context && in build_snap_context()
349 realm->cached_context->seq == realm->seq && in build_snap_context()
351 realm->cached_context->seq >= parent->cached_context->seq)) { in build_snap_context()
354 realm->ino, realm, realm->cached_context, in build_snap_context()
355 realm->cached_context->seq, in build_snap_context()
356 (unsigned int)realm->cached_context->num_snaps); in build_snap_context()
376 for (i = 0; i < parent->cached_context->num_snaps; i++) in build_snap_context()
377 if (parent->cached_context->snaps[i] >= in build_snap_context()
380 parent->cached_context->snaps[i]; in build_snap_context()
381 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
382 snapc->seq = parent->cached_context->seq; in build_snap_context()
397 ceph_put_snap_context(realm->cached_context); in build_snap_context()
398 realm->cached_context = snapc; in build_snap_context()
408 if (realm->cached_context) { in build_snap_context()
409 ceph_put_snap_context(realm->cached_context); in build_snap_context()
410 realm->cached_context = NULL; in build_snap_context()
496 new_snapc = ci->i_snap_realm->cached_context; in ceph_queue_cap_snap()
761 } else if (!realm->cached_context) { in ceph_update_snap_trace()