Lines Matching refs:cached_context
205 ceph_put_snap_context(realm->cached_context); in __destroy_snap_realm()
347 if (!parent->cached_context) { in build_snap_context()
352 num += parent->cached_context->num_snaps; in build_snap_context()
359 if (realm->cached_context && in build_snap_context()
360 realm->cached_context->seq == realm->seq && in build_snap_context()
362 realm->cached_context->seq >= parent->cached_context->seq)) { in build_snap_context()
364 __func__, realm->ino, realm, realm->cached_context, in build_snap_context()
365 realm->cached_context->seq, in build_snap_context()
366 (unsigned int)realm->cached_context->num_snaps); in build_snap_context()
386 for (i = 0; i < parent->cached_context->num_snaps; i++) in build_snap_context()
387 if (parent->cached_context->snaps[i] >= in build_snap_context()
390 parent->cached_context->snaps[i]; in build_snap_context()
391 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
392 snapc->seq = parent->cached_context->seq; in build_snap_context()
406 ceph_put_snap_context(realm->cached_context); in build_snap_context()
407 realm->cached_context = snapc; in build_snap_context()
417 if (realm->cached_context) { in build_snap_context()
418 ceph_put_snap_context(realm->cached_context); in build_snap_context()
419 realm->cached_context = NULL; in build_snap_context()
536 new_snapc = ci->i_snap_realm->cached_context; in ceph_queue_cap_snap()
836 } else if (!realm->cached_context) { in ceph_update_snap_trace()