Lines Matching refs:cached_context
199 ceph_put_snap_context(realm->cached_context);
336 if (!parent->cached_context) {
341 num += parent->cached_context->num_snaps;
348 if (realm->cached_context &&
349 realm->cached_context->seq == realm->seq &&
351 realm->cached_context->seq >= parent->cached_context->seq)) {
354 realm->ino, realm, realm->cached_context,
355 realm->cached_context->seq,
356 (unsigned int)realm->cached_context->num_snaps);
376 for (i = 0; i < parent->cached_context->num_snaps; i++)
377 if (parent->cached_context->snaps[i] >=
380 parent->cached_context->snaps[i];
381 if (parent->cached_context->seq > snapc->seq)
382 snapc->seq = parent->cached_context->seq;
397 ceph_put_snap_context(realm->cached_context);
398 realm->cached_context = snapc;
405 * if we fail, clear old (incorrect) cached_context... hopefully
408 if (realm->cached_context) {
409 ceph_put_snap_context(realm->cached_context);
410 realm->cached_context = NULL;
499 new_snapc = ci->i_snap_realm->cached_context;
764 } else if (!realm->cached_context) {