Lines Matching refs:cached_context
191 ceph_put_snap_context(realm->cached_context); in __destroy_snap_realm()
322 if (!parent->cached_context) { in build_snap_context()
327 num += parent->cached_context->num_snaps; in build_snap_context()
334 if (realm->cached_context && in build_snap_context()
335 realm->cached_context->seq == realm->seq && in build_snap_context()
337 realm->cached_context->seq >= parent->cached_context->seq)) { in build_snap_context()
340 realm->ino, realm, realm->cached_context, in build_snap_context()
341 realm->cached_context->seq, in build_snap_context()
342 (unsigned int)realm->cached_context->num_snaps); in build_snap_context()
362 for (i = 0; i < parent->cached_context->num_snaps; i++) in build_snap_context()
363 if (parent->cached_context->snaps[i] >= in build_snap_context()
366 parent->cached_context->snaps[i]; in build_snap_context()
367 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
368 snapc->seq = parent->cached_context->seq; in build_snap_context()
383 ceph_put_snap_context(realm->cached_context); in build_snap_context()
384 realm->cached_context = snapc; in build_snap_context()
394 if (realm->cached_context) { in build_snap_context()
395 ceph_put_snap_context(realm->cached_context); in build_snap_context()
396 realm->cached_context = NULL; in build_snap_context()
482 new_snapc = ci->i_snap_realm->cached_context; in ceph_queue_cap_snap()
740 } else if (!realm->cached_context) { in ceph_update_snap_trace()