Lines Matching refs:cached_context
207 ceph_put_snap_context(realm->cached_context); in __destroy_snap_realm()
352 if (!parent->cached_context) { in build_snap_context()
357 num += parent->cached_context->num_snaps; in build_snap_context()
364 if (realm->cached_context && in build_snap_context()
365 realm->cached_context->seq == realm->seq && in build_snap_context()
367 realm->cached_context->seq >= parent->cached_context->seq)) { in build_snap_context()
369 realm->ino, realm, realm->cached_context, in build_snap_context()
370 realm->cached_context->seq, in build_snap_context()
371 (unsigned int)realm->cached_context->num_snaps); in build_snap_context()
391 for (i = 0; i < parent->cached_context->num_snaps; i++) in build_snap_context()
392 if (parent->cached_context->snaps[i] >= in build_snap_context()
395 parent->cached_context->snaps[i]; in build_snap_context()
396 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
397 snapc->seq = parent->cached_context->seq; in build_snap_context()
411 ceph_put_snap_context(realm->cached_context); in build_snap_context()
412 realm->cached_context = snapc; in build_snap_context()
422 if (realm->cached_context) { in build_snap_context()
423 ceph_put_snap_context(realm->cached_context); in build_snap_context()
424 realm->cached_context = NULL; in build_snap_context()
545 new_snapc = ci->i_snap_realm->cached_context; in ceph_queue_cap_snap()
851 } else if (!realm->cached_context) { in ceph_update_snap_trace()