Lines Matching refs:ri
623 struct ceph_mds_snap_realm *ri; /* encoded */ in ceph_update_snap_trace() local
633 ceph_decode_need(&p, e, sizeof(*ri), bad); in ceph_update_snap_trace()
634 ri = p; in ceph_update_snap_trace()
635 p += sizeof(*ri); in ceph_update_snap_trace()
636 ceph_decode_need(&p, e, sizeof(u64)*(le32_to_cpu(ri->num_snaps) + in ceph_update_snap_trace()
637 le32_to_cpu(ri->num_prior_parent_snaps)), bad); in ceph_update_snap_trace()
639 p += sizeof(u64) * le32_to_cpu(ri->num_snaps); in ceph_update_snap_trace()
641 p += sizeof(u64) * le32_to_cpu(ri->num_prior_parent_snaps); in ceph_update_snap_trace()
643 realm = ceph_lookup_snap_realm(mdsc, le64_to_cpu(ri->ino)); in ceph_update_snap_trace()
645 realm = ceph_create_snap_realm(mdsc, le64_to_cpu(ri->ino)); in ceph_update_snap_trace()
653 err = adjust_snap_realm_parent(mdsc, realm, le64_to_cpu(ri->parent)); in ceph_update_snap_trace()
658 if (le64_to_cpu(ri->seq) > realm->seq) { in ceph_update_snap_trace()
660 realm->ino, realm, realm->seq, le64_to_cpu(ri->seq)); in ceph_update_snap_trace()
662 realm->seq = le64_to_cpu(ri->seq); in ceph_update_snap_trace()
663 realm->created = le64_to_cpu(ri->created); in ceph_update_snap_trace()
664 realm->parent_since = le64_to_cpu(ri->parent_since); in ceph_update_snap_trace()
666 realm->num_snaps = le32_to_cpu(ri->num_snaps); in ceph_update_snap_trace()
672 le32_to_cpu(ri->num_prior_parent_snaps); in ceph_update_snap_trace()
810 struct ceph_mds_snap_realm *ri; in ceph_handle_snap() local
822 ceph_decode_need(&p, e, sizeof(*ri), bad); in ceph_handle_snap()
826 ri = p; in ceph_handle_snap()
861 le64_to_cpu(ri->created)) { in ceph_handle_snap()