Lines Matching refs:cached_context

185 	ceph_put_snap_context(realm->cached_context);  in __destroy_snap_realm()
317 if (!parent->cached_context) { in build_snap_context()
322 num += parent->cached_context->num_snaps; in build_snap_context()
329 if (realm->cached_context && in build_snap_context()
330 realm->cached_context->seq == realm->seq && in build_snap_context()
332 realm->cached_context->seq >= parent->cached_context->seq)) { in build_snap_context()
335 realm->ino, realm, realm->cached_context, in build_snap_context()
336 realm->cached_context->seq, in build_snap_context()
337 (unsigned int) realm->cached_context->num_snaps); in build_snap_context()
363 for (i = 0; i < parent->cached_context->num_snaps; i++) in build_snap_context()
364 if (parent->cached_context->snaps[i] >= in build_snap_context()
367 parent->cached_context->snaps[i]; in build_snap_context()
368 if (parent->cached_context->seq > snapc->seq) in build_snap_context()
369 snapc->seq = parent->cached_context->seq; in build_snap_context()
385 ceph_put_snap_context(realm->cached_context); in build_snap_context()
386 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()
485 } else if (ci->i_snap_realm->cached_context == empty_snapc) { in ceph_queue_cap_snap()
497 snapc = ci->i_snap_realm->cached_context; in ceph_queue_cap_snap()
535 ceph_get_snap_context(ci->i_snap_realm->cached_context); in ceph_queue_cap_snap()
704 } else if (!realm->cached_context) { in ceph_update_snap_trace()