realm 688 fs/ceph/caps.c struct ceph_snap_realm *realm = ceph_lookup_snap_realm(mdsc, realm 690 fs/ceph/caps.c if (realm) { realm 698 fs/ceph/caps.c spin_lock(&realm->inodes_with_caps_lock); realm 700 fs/ceph/caps.c &realm->inodes_with_caps); realm 701 fs/ceph/caps.c ci->i_snap_realm = realm; realm 702 fs/ceph/caps.c if (realm->ino == ci->i_vino.ino) realm 703 fs/ceph/caps.c realm->inode = inode; realm 704 fs/ceph/caps.c spin_unlock(&realm->inodes_with_caps_lock); realm 711 fs/ceph/caps.c WARN_ON(!realm); realm 1033 fs/ceph/caps.c struct ceph_snap_realm *realm = ci->i_snap_realm; realm 1034 fs/ceph/caps.c spin_lock(&realm->inodes_with_caps_lock); realm 1038 fs/ceph/caps.c if (realm->ino == ci->i_vino.ino) realm 1039 fs/ceph/caps.c realm->inode = NULL; realm 1040 fs/ceph/caps.c spin_unlock(&realm->inodes_with_caps_lock); realm 1042 fs/ceph/caps.c realm); realm 3731 fs/ceph/caps.c u64 realmino = le64_to_cpu(im->realm); realm 3810 fs/ceph/caps.c struct ceph_snap_realm *realm = NULL; realm 3956 fs/ceph/caps.c realm = NULL; realm 3961 fs/ceph/caps.c false, &realm); realm 3970 fs/ceph/caps.c if (realm) realm 3971 fs/ceph/caps.c ceph_put_snap_realm(mdsc, realm); realm 557 fs/ceph/inode.c struct ceph_snap_realm *realm = ci->i_snap_realm; realm 559 fs/ceph/inode.c realm); realm 560 fs/ceph/inode.c spin_lock(&realm->inodes_with_caps_lock); realm 563 fs/ceph/inode.c if (realm->ino == ci->i_vino.ino) realm 564 fs/ceph/inode.c realm->inode = NULL; realm 565 fs/ceph/inode.c spin_unlock(&realm->inodes_with_caps_lock); realm 566 fs/ceph/inode.c ceph_put_snap_realm(mdsc, realm); realm 969 fs/ceph/inode.c le64_to_cpu(info->cap.realm), realm 2794 fs/ceph/mds_client.c struct ceph_snap_realm *realm; realm 2920 fs/ceph/mds_client.c realm = NULL; realm 2926 fs/ceph/mds_client.c &realm); realm 2945 fs/ceph/mds_client.c if (realm) realm 2946 fs/ceph/mds_client.c ceph_put_snap_realm(mdsc, realm); realm 3521 fs/ceph/mds_client.c struct ceph_snap_realm *realm = realm 3546 fs/ceph/mds_client.c realm->ino, realm->seq, realm->parent_ino); realm 3547 fs/ceph/mds_client.c sr_rec.ino = cpu_to_le64(realm->ino); realm 3548 fs/ceph/mds_client.c sr_rec.seq = cpu_to_le64(realm->seq); realm 3549 fs/ceph/mds_client.c sr_rec.parent = cpu_to_le64(realm->parent_ino); realm 128 fs/ceph/quota.c struct ceph_snap_realm *realm) realm 133 fs/ceph/quota.c qri = find_quotarealm_inode(mdsc, realm->ino); realm 158 fs/ceph/quota.c in = ceph_lookup_inode(sb, realm->ino); realm 163 fs/ceph/quota.c realm->ino, PTR_ERR(in)); realm 213 fs/ceph/quota.c struct ceph_snap_realm *realm, *next; realm 221 fs/ceph/quota.c realm = ceph_inode(inode)->i_snap_realm; realm 222 fs/ceph/quota.c if (realm) realm 223 fs/ceph/quota.c ceph_get_snap_realm(mdsc, realm); realm 227 fs/ceph/quota.c while (realm) { realm 230 fs/ceph/quota.c spin_lock(&realm->inodes_with_caps_lock); realm 231 fs/ceph/quota.c has_inode = realm->inode; realm 232 fs/ceph/quota.c in = has_inode ? igrab(realm->inode) : NULL; realm 233 fs/ceph/quota.c spin_unlock(&realm->inodes_with_caps_lock); realm 238 fs/ceph/quota.c in = lookup_quotarealm_inode(mdsc, inode->i_sb, realm); realm 242 fs/ceph/quota.c ceph_put_snap_realm(mdsc, realm); realm 253 fs/ceph/quota.c next = realm->parent; realm 255 fs/ceph/quota.c return realm; realm 258 fs/ceph/quota.c ceph_put_snap_realm(mdsc, realm); realm 259 fs/ceph/quota.c realm = next; realm 261 fs/ceph/quota.c if (realm) realm 262 fs/ceph/quota.c ceph_put_snap_realm(mdsc, realm); realm 318 fs/ceph/quota.c struct ceph_snap_realm *realm, *next; realm 328 fs/ceph/quota.c realm = ceph_inode(inode)->i_snap_realm; realm 329 fs/ceph/quota.c if (realm) realm 330 fs/ceph/quota.c ceph_get_snap_realm(mdsc, realm); realm 334 fs/ceph/quota.c while (realm) { realm 337 fs/ceph/quota.c spin_lock(&realm->inodes_with_caps_lock); realm 338 fs/ceph/quota.c has_inode = realm->inode; realm 339 fs/ceph/quota.c in = has_inode ? igrab(realm->inode) : NULL; realm 340 fs/ceph/quota.c spin_unlock(&realm->inodes_with_caps_lock); realm 345 fs/ceph/quota.c in = lookup_quotarealm_inode(mdsc, inode->i_sb, realm); realm 349 fs/ceph/quota.c ceph_put_snap_realm(mdsc, realm); realm 391 fs/ceph/quota.c next = realm->parent; realm 395 fs/ceph/quota.c ceph_put_snap_realm(mdsc, realm); realm 396 fs/ceph/quota.c realm = next; realm 398 fs/ceph/quota.c if (realm) realm 399 fs/ceph/quota.c ceph_put_snap_realm(mdsc, realm); realm 482 fs/ceph/quota.c struct ceph_snap_realm *realm; realm 488 fs/ceph/quota.c realm = get_quota_realm(mdsc, d_inode(fsc->sb->s_root), true); realm 490 fs/ceph/quota.c if (!realm) realm 493 fs/ceph/quota.c spin_lock(&realm->inodes_with_caps_lock); realm 494 fs/ceph/quota.c in = realm->inode ? igrab(realm->inode) : NULL; realm 495 fs/ceph/quota.c spin_unlock(&realm->inodes_with_caps_lock); realm 516 fs/ceph/quota.c ceph_put_snap_realm(mdsc, realm); realm 66 fs/ceph/snap.c struct ceph_snap_realm *realm) realm 68 fs/ceph/snap.c dout("get_realm %p %d -> %d\n", realm, realm 69 fs/ceph/snap.c atomic_read(&realm->nref), atomic_read(&realm->nref)+1); realm 76 fs/ceph/snap.c if (atomic_inc_return(&realm->nref) == 1) { realm 78 fs/ceph/snap.c list_del_init(&realm->empty_item); realm 114 fs/ceph/snap.c struct ceph_snap_realm *realm; realm 116 fs/ceph/snap.c realm = kzalloc(sizeof(*realm), GFP_NOFS); realm 117 fs/ceph/snap.c if (!realm) realm 120 fs/ceph/snap.c atomic_set(&realm->nref, 1); /* for caller */ realm 121 fs/ceph/snap.c realm->ino = ino; realm 122 fs/ceph/snap.c INIT_LIST_HEAD(&realm->children); realm 123 fs/ceph/snap.c INIT_LIST_HEAD(&realm->child_item); realm 124 fs/ceph/snap.c INIT_LIST_HEAD(&realm->empty_item); realm 125 fs/ceph/snap.c INIT_LIST_HEAD(&realm->dirty_item); realm 126 fs/ceph/snap.c INIT_LIST_HEAD(&realm->inodes_with_caps); realm 127 fs/ceph/snap.c spin_lock_init(&realm->inodes_with_caps_lock); realm 128 fs/ceph/snap.c __insert_snap_realm(&mdsc->snap_realms, realm); realm 131 fs/ceph/snap.c dout("create_snap_realm %llx %p\n", realm->ino, realm); realm 132 fs/ceph/snap.c return realm; realm 171 fs/ceph/snap.c struct ceph_snap_realm *realm); realm 177 fs/ceph/snap.c struct ceph_snap_realm *realm) realm 179 fs/ceph/snap.c dout("__destroy_snap_realm %p %llx\n", realm, realm->ino); realm 181 fs/ceph/snap.c rb_erase(&realm->node, &mdsc->snap_realms); realm 184 fs/ceph/snap.c if (realm->parent) { realm 185 fs/ceph/snap.c list_del_init(&realm->child_item); realm 186 fs/ceph/snap.c __put_snap_realm(mdsc, realm->parent); realm 189 fs/ceph/snap.c kfree(realm->prior_parent_snaps); realm 190 fs/ceph/snap.c kfree(realm->snaps); realm 191 fs/ceph/snap.c ceph_put_snap_context(realm->cached_context); realm 192 fs/ceph/snap.c kfree(realm); realm 199 fs/ceph/snap.c struct ceph_snap_realm *realm) realm 201 fs/ceph/snap.c dout("__put_snap_realm %llx %p %d -> %d\n", realm->ino, realm, realm 202 fs/ceph/snap.c atomic_read(&realm->nref), atomic_read(&realm->nref)-1); realm 203 fs/ceph/snap.c if (atomic_dec_and_test(&realm->nref)) realm 204 fs/ceph/snap.c __destroy_snap_realm(mdsc, realm); realm 211 fs/ceph/snap.c struct ceph_snap_realm *realm) realm 213 fs/ceph/snap.c dout("put_snap_realm %llx %p %d -> %d\n", realm->ino, realm, realm 214 fs/ceph/snap.c atomic_read(&realm->nref), atomic_read(&realm->nref)-1); realm 215 fs/ceph/snap.c if (!atomic_dec_and_test(&realm->nref)) realm 219 fs/ceph/snap.c __destroy_snap_realm(mdsc, realm); realm 223 fs/ceph/snap.c list_add(&realm->empty_item, &mdsc->snap_empty); realm 237 fs/ceph/snap.c struct ceph_snap_realm *realm; realm 241 fs/ceph/snap.c realm = list_first_entry(&mdsc->snap_empty, realm 243 fs/ceph/snap.c list_del(&realm->empty_item); realm 245 fs/ceph/snap.c __destroy_snap_realm(mdsc, realm); realm 267 fs/ceph/snap.c struct ceph_snap_realm *realm, realm 272 fs/ceph/snap.c if (realm->parent_ino == parentino) realm 282 fs/ceph/snap.c realm->ino, realm, realm->parent_ino, realm->parent, realm 284 fs/ceph/snap.c if (realm->parent) { realm 285 fs/ceph/snap.c list_del_init(&realm->child_item); realm 286 fs/ceph/snap.c ceph_put_snap_realm(mdsc, realm->parent); realm 288 fs/ceph/snap.c realm->parent_ino = parentino; realm 289 fs/ceph/snap.c realm->parent = parent; realm 290 fs/ceph/snap.c list_add(&realm->child_item, &parent->children); realm 308 fs/ceph/snap.c static int build_snap_context(struct ceph_snap_realm *realm, realm 311 fs/ceph/snap.c struct ceph_snap_realm *parent = realm->parent; realm 314 fs/ceph/snap.c u32 num = realm->num_prior_parent_snaps + realm->num_snaps; realm 334 fs/ceph/snap.c if (realm->cached_context && realm 335 fs/ceph/snap.c realm->cached_context->seq == realm->seq && realm 337 fs/ceph/snap.c realm->cached_context->seq >= parent->cached_context->seq)) { realm 340 fs/ceph/snap.c realm->ino, realm, realm->cached_context, realm 341 fs/ceph/snap.c realm->cached_context->seq, realm 342 fs/ceph/snap.c (unsigned int)realm->cached_context->num_snaps); realm 356 fs/ceph/snap.c snapc->seq = realm->seq; realm 364 fs/ceph/snap.c realm->parent_since) realm 370 fs/ceph/snap.c memcpy(snapc->snaps + num, realm->snaps, realm 371 fs/ceph/snap.c sizeof(u64)*realm->num_snaps); realm 372 fs/ceph/snap.c num += realm->num_snaps; realm 373 fs/ceph/snap.c memcpy(snapc->snaps + num, realm->prior_parent_snaps, realm 374 fs/ceph/snap.c sizeof(u64)*realm->num_prior_parent_snaps); realm 375 fs/ceph/snap.c num += realm->num_prior_parent_snaps; realm 380 fs/ceph/snap.c realm->ino, realm, snapc, snapc->seq, realm 383 fs/ceph/snap.c ceph_put_snap_context(realm->cached_context); realm 384 fs/ceph/snap.c realm->cached_context = snapc; realm 386 fs/ceph/snap.c list_add_tail(&realm->dirty_item, dirty_realms); realm 394 fs/ceph/snap.c if (realm->cached_context) { realm 395 fs/ceph/snap.c ceph_put_snap_context(realm->cached_context); realm 396 fs/ceph/snap.c realm->cached_context = NULL; realm 398 fs/ceph/snap.c pr_err("build_snap_context %llx %p fail %d\n", realm->ino, realm 399 fs/ceph/snap.c realm, err); realm 406 fs/ceph/snap.c static void rebuild_snap_realms(struct ceph_snap_realm *realm, realm 411 fs/ceph/snap.c dout("rebuild_snap_realms %llx %p\n", realm->ino, realm); realm 412 fs/ceph/snap.c build_snap_context(realm, dirty_realms); realm 414 fs/ceph/snap.c list_for_each_entry(child, &realm->children, child_item) realm 643 fs/ceph/snap.c static void queue_realm_cap_snaps(struct ceph_snap_realm *realm) realm 648 fs/ceph/snap.c dout("queue_realm_cap_snaps %p %llx inodes\n", realm, realm->ino); realm 650 fs/ceph/snap.c spin_lock(&realm->inodes_with_caps_lock); realm 651 fs/ceph/snap.c list_for_each_entry(ci, &realm->inodes_with_caps, i_snap_realm_item) { realm 655 fs/ceph/snap.c spin_unlock(&realm->inodes_with_caps_lock); realm 661 fs/ceph/snap.c spin_lock(&realm->inodes_with_caps_lock); realm 663 fs/ceph/snap.c spin_unlock(&realm->inodes_with_caps_lock); realm 666 fs/ceph/snap.c dout("queue_realm_cap_snaps %p %llx done\n", realm, realm->ino); realm 683 fs/ceph/snap.c struct ceph_snap_realm *realm = NULL; realm 701 fs/ceph/snap.c realm = ceph_lookup_snap_realm(mdsc, le64_to_cpu(ri->ino)); realm 702 fs/ceph/snap.c if (!realm) { realm 703 fs/ceph/snap.c realm = ceph_create_snap_realm(mdsc, le64_to_cpu(ri->ino)); realm 704 fs/ceph/snap.c if (IS_ERR(realm)) { realm 705 fs/ceph/snap.c err = PTR_ERR(realm); realm 711 fs/ceph/snap.c err = adjust_snap_realm_parent(mdsc, realm, le64_to_cpu(ri->parent)); realm 716 fs/ceph/snap.c if (le64_to_cpu(ri->seq) > realm->seq) { realm 718 fs/ceph/snap.c realm->ino, realm, realm->seq, le64_to_cpu(ri->seq)); realm 720 fs/ceph/snap.c realm->seq = le64_to_cpu(ri->seq); realm 721 fs/ceph/snap.c realm->created = le64_to_cpu(ri->created); realm 722 fs/ceph/snap.c realm->parent_since = le64_to_cpu(ri->parent_since); realm 724 fs/ceph/snap.c realm->num_snaps = le32_to_cpu(ri->num_snaps); realm 725 fs/ceph/snap.c err = dup_array(&realm->snaps, snaps, realm->num_snaps); realm 729 fs/ceph/snap.c realm->num_prior_parent_snaps = realm 731 fs/ceph/snap.c err = dup_array(&realm->prior_parent_snaps, prior_parent_snaps, realm 732 fs/ceph/snap.c realm->num_prior_parent_snaps); realm 736 fs/ceph/snap.c if (realm->seq > mdsc->last_snap_seq) realm 737 fs/ceph/snap.c mdsc->last_snap_seq = realm->seq; realm 740 fs/ceph/snap.c } else if (!realm->cached_context) { realm 742 fs/ceph/snap.c realm->ino, realm, realm->seq); realm 746 fs/ceph/snap.c realm->ino, realm, realm->seq); realm 749 fs/ceph/snap.c dout("done with %llx %p, invalidated=%d, %p %p\n", realm->ino, realm 750 fs/ceph/snap.c realm, invalidate, p, e); realm 754 fs/ceph/snap.c rebuild_snap_realms(realm, &dirty_realms); realm 757 fs/ceph/snap.c first_realm = realm; realm 759 fs/ceph/snap.c ceph_put_snap_realm(mdsc, realm); realm 769 fs/ceph/snap.c realm = list_first_entry(&dirty_realms, struct ceph_snap_realm, realm 771 fs/ceph/snap.c list_del_init(&realm->dirty_item); realm 772 fs/ceph/snap.c queue_realm_cap_snaps(realm); realm 786 fs/ceph/snap.c if (realm && !IS_ERR(realm)) realm 787 fs/ceph/snap.c ceph_put_snap_realm(mdsc, realm); realm 851 fs/ceph/snap.c struct ceph_snap_realm *realm = NULL; realm 901 fs/ceph/snap.c realm = ceph_lookup_snap_realm(mdsc, split); realm 902 fs/ceph/snap.c if (!realm) { realm 903 fs/ceph/snap.c realm = ceph_create_snap_realm(mdsc, split); realm 904 fs/ceph/snap.c if (IS_ERR(realm)) realm 908 fs/ceph/snap.c dout("splitting snap_realm %llx %p\n", realm->ino, realm); realm 940 fs/ceph/snap.c inode, realm->ino, realm); realm 949 fs/ceph/snap.c spin_lock(&realm->inodes_with_caps_lock); realm 951 fs/ceph/snap.c &realm->inodes_with_caps); realm 952 fs/ceph/snap.c ci->i_snap_realm = realm; realm 953 fs/ceph/snap.c if (realm->ino == ci->i_vino.ino) realm 954 fs/ceph/snap.c realm->inode = inode; realm 955 fs/ceph/snap.c spin_unlock(&realm->inodes_with_caps_lock); realm 959 fs/ceph/snap.c ceph_get_snap_realm(mdsc, realm); realm 979 fs/ceph/snap.c adjust_snap_realm_parent(mdsc, child, realm->ino); realm 992 fs/ceph/snap.c ceph_put_snap_realm(mdsc, realm); realm 863 fs/ceph/super.h struct ceph_snap_realm *realm); realm 865 fs/ceph/super.h struct ceph_snap_realm *realm); realm 41 include/keys/rxrpc-type.h char *realm; /* parts of the realm part of the principal */ realm 498 include/linux/ceph/ceph_fs.h __le64 realm; /* snap realm */ realm 692 include/linux/ceph/ceph_fs.h __le64 ino, realm; realm 177 net/rxrpc/key.c kfree(princ->realm); realm 271 net/rxrpc/key.c princ->realm = kmalloc(tmp + 1, GFP_KERNEL); realm 272 net/rxrpc/key.c if (!princ->realm) realm 274 net/rxrpc/key.c memcpy(princ->realm, xdr, tmp); realm 275 net/rxrpc/key.c princ->realm[tmp] = 0; realm 279 net/rxrpc/key.c _debug("%s/...@%s", princ->name_parts[0], princ->realm); realm 1086 net/rxrpc/key.c toksize += 4 + RND(strlen(princ->realm)); realm 1092 net/rxrpc/key.c toksize += 4 + RND(strlen(princ->realm)); realm 1181 net/rxrpc/key.c ENCODE_STR(princ->realm); realm 1187 net/rxrpc/key.c ENCODE_STR(princ->realm);