/kernel/linux/linux-6.6/fs/ceph/ |
H A D | snap.c | 31 * of the files contained by each realm share the same set of 32 * snapshots. An individual realm's snap set contains snapshots 33 * explicitly created on that realm, as well as any snaps in its 40 * realm relationship, and for each realm has an explicit list of snaps 44 * with an open cap in the system. (The needed snap realm information is 46 * version number is used to ensure that as realm parameters change (new 47 * snapshot, new parent, etc.) the client's realm hierarchy is updated. 49 * The realm hierarchy drives the generation of a 'snap context' for each 50 * realm, whic 66 ceph_get_snap_realm(struct ceph_mds_client *mdsc, struct ceph_snap_realm *realm) ceph_get_snap_realm() argument 117 struct ceph_snap_realm *realm; ceph_create_snap_realm() local 188 __destroy_snap_realm(struct ceph_mds_client *mdsc, struct ceph_snap_realm *realm) __destroy_snap_realm() argument 212 __put_snap_realm(struct ceph_mds_client *mdsc, struct ceph_snap_realm *realm) __put_snap_realm() argument 228 ceph_put_snap_realm(struct ceph_mds_client *mdsc, struct ceph_snap_realm *realm) ceph_put_snap_realm() argument 253 struct ceph_snap_realm *realm; __cleanup_empty_realms() local 289 adjust_snap_realm_parent(struct ceph_mds_client *mdsc, struct ceph_snap_realm *realm, u64 parentino) adjust_snap_realm_parent() argument 332 build_snap_context(struct ceph_snap_realm *realm, struct list_head *realm_queue, struct list_head *dirty_realms) build_snap_context() argument 428 rebuild_snap_realms(struct ceph_snap_realm *realm, struct list_head *dirty_realms) rebuild_snap_realms() argument 711 queue_realm_cap_snaps(struct ceph_snap_realm *realm) queue_realm_cap_snaps() argument 772 struct ceph_snap_realm *realm; ceph_update_snap_trace() local 960 ceph_change_snap_realm(struct inode *inode, struct ceph_snap_realm *realm) ceph_change_snap_realm() argument 1008 struct ceph_snap_realm *realm = NULL; ceph_handle_snap() local [all...] |
H A D | quota.c | 121 * This function will try to lookup a realm inode which isn't visible in the 130 struct ceph_snap_realm *realm) in lookup_quotarealm_inode() 135 qri = find_quotarealm_inode(mdsc, realm->ino); in lookup_quotarealm_inode() 160 in = ceph_lookup_inode(sb, realm->ino); in lookup_quotarealm_inode() 165 realm->ino, PTR_ERR(in)); in lookup_quotarealm_inode() 203 * returned realm. 216 struct ceph_snap_realm *realm, *next; in get_quota_realm() local 226 realm = ceph_inode(inode)->i_snap_realm; in get_quota_realm() 227 if (realm) in get_quota_realm() 228 ceph_get_snap_realm(mdsc, realm); in get_quota_realm() 128 lookup_quotarealm_inode(struct ceph_mds_client *mdsc, struct super_block *sb, struct ceph_snap_realm *realm) lookup_quotarealm_inode() argument 326 struct ceph_snap_realm *realm, *next; check_quota_exceeded() local 487 struct ceph_snap_realm *realm; ceph_quota_update_statfs() local [all...] |
H A D | mds_client.c | 3630 struct ceph_snap_realm *realm; in handle_reply() local 3751 realm = NULL; in handle_reply() 3757 &realm); in handle_reply() 3783 if (realm) in handle_reply() 3784 ceph_put_snap_realm(mdsc, realm); in handle_reply() 4190 /* can't handle message that contains both caps and realm */ in send_reconnect_partial() 4495 struct ceph_snap_realm *realm = in encode_snap_realms() local 4519 dout(" adding snap realm %llx seq %lld parent %llx\n", in encode_snap_realms() 4520 realm->ino, realm in encode_snap_realms() [all...] |
H A D | super.h | 452 struct ceph_snap_realm *i_snap_realm; /* snap realm (if caps) */ 905 * A "snap realm" describes a subset of the file hierarchy sharing 910 * All inodes within the realm that have capabilities are linked into a 911 * per-realm list. 925 u64 *snaps; /* snaps specific to this realm */ 934 struct list_head dirty_item; /* if realm needs new context */ 938 /* the current set of snaps for this realm */ 981 struct ceph_snap_realm *realm); 983 struct ceph_snap_realm *realm); 987 void ceph_change_snap_realm(struct inode *inode, struct ceph_snap_realm *realm); [all...] |
H A D | caps.c | 704 * add this inode to the appropriate snap realm in ceph_add_cap() 706 struct ceph_snap_realm *realm = ceph_lookup_snap_realm(mdsc, in ceph_add_cap() local 708 if (realm) in ceph_add_cap() 709 ceph_change_snap_realm(inode, realm); in ceph_add_cap() 711 WARN(1, "%s: couldn't find snap realm 0x%llx (ino 0x%llx oldrealm 0x%llx)\n", in ceph_add_cap() 4115 u64 realmino = le64_to_cpu(im->realm); in handle_cap_import() 4236 struct ceph_snap_realm *realm = NULL; in ceph_handle_caps() local 4386 realm = NULL; in ceph_handle_caps() 4391 false, &realm)) { in ceph_handle_caps() 4405 if (realm) in ceph_handle_caps() [all...] |
H A D | inode.c | 704 dout(" dropping residual ref to snap realm %p\n", in ceph_evict_inode() 1233 le64_to_cpu(info->cap.realm), in ceph_fill_inode() 3008 struct ceph_snap_realm *realm; in ceph_getattr() local 3017 realm = pci->i_snap_realm; in ceph_getattr() 3018 if (realm) in ceph_getattr() 3019 stat->size = realm->num_snaps; in ceph_getattr()
|
H A D | file.c | 652 in.cap.realm = cpu_to_le64(ci->i_snap_realm->ino); in ceph_finish_async_create()
|
/kernel/linux/linux-5.10/fs/ceph/ |
H A D | snap.c | 30 * of the files contained by each realm share the same set of 31 * snapshots. An individual realm's snap set contains snapshots 32 * explicitly created on that realm, as well as any snaps in its 39 * realm relationship, and for each realm has an explicit list of snaps 43 * with an open cap in the system. (The needed snap realm information is 45 * version number is used to ensure that as realm parameters change (new 46 * snapshot, new parent, etc.) the client's realm hierarchy is updated. 48 * The realm hierarchy drives the generation of a 'snap context' for each 49 * realm, whic 65 ceph_get_snap_realm(struct ceph_mds_client *mdsc, struct ceph_snap_realm *realm) ceph_get_snap_realm() argument 116 struct ceph_snap_realm *realm; ceph_create_snap_realm() local 182 __destroy_snap_realm(struct ceph_mds_client *mdsc, struct ceph_snap_realm *realm) __destroy_snap_realm() argument 206 __put_snap_realm(struct ceph_mds_client *mdsc, struct ceph_snap_realm *realm) __put_snap_realm() argument 222 ceph_put_snap_realm(struct ceph_mds_client *mdsc, struct ceph_snap_realm *realm) ceph_put_snap_realm() argument 247 struct ceph_snap_realm *realm; __cleanup_empty_realms() local 278 adjust_snap_realm_parent(struct ceph_mds_client *mdsc, struct ceph_snap_realm *realm, u64 parentino) adjust_snap_realm_parent() argument 322 build_snap_context(struct ceph_snap_realm *realm, struct list_head* dirty_realms) build_snap_context() argument 420 rebuild_snap_realms(struct ceph_snap_realm *realm, struct list_head *dirty_realms) rebuild_snap_realms() argument 662 queue_realm_cap_snaps(struct ceph_snap_realm *realm) queue_realm_cap_snaps() argument 702 struct ceph_snap_realm *realm; ceph_update_snap_trace() local 883 struct ceph_snap_realm *realm = NULL; ceph_handle_snap() local [all...] |
H A D | quota.c | 119 * This function will try to lookup a realm inode which isn't visible in the 128 struct ceph_snap_realm *realm) in lookup_quotarealm_inode() 133 qri = find_quotarealm_inode(mdsc, realm->ino); in lookup_quotarealm_inode() 158 in = ceph_lookup_inode(sb, realm->ino); in lookup_quotarealm_inode() 163 realm->ino, PTR_ERR(in)); in lookup_quotarealm_inode() 201 * returned realm. 213 struct ceph_snap_realm *realm, *next; in get_quota_realm() local 221 realm = ceph_inode(inode)->i_snap_realm; in get_quota_realm() 222 if (realm) in get_quota_realm() 223 ceph_get_snap_realm(mdsc, realm); in get_quota_realm() 126 lookup_quotarealm_inode(struct ceph_mds_client *mdsc, struct super_block *sb, struct ceph_snap_realm *realm) lookup_quotarealm_inode() argument 318 struct ceph_snap_realm *realm, *next; check_quota_exceeded() local 480 struct ceph_snap_realm *realm; ceph_quota_update_statfs() local [all...] |
H A D | caps.c | 704 * add this inode to the appropriate snap realm in ceph_add_cap() 706 struct ceph_snap_realm *realm = ceph_lookup_snap_realm(mdsc, in ceph_add_cap() local 708 if (realm) { in ceph_add_cap() 716 spin_lock(&realm->inodes_with_caps_lock); in ceph_add_cap() 718 &realm->inodes_with_caps); in ceph_add_cap() 719 ci->i_snap_realm = realm; in ceph_add_cap() 720 if (realm->ino == ci->i_vino.ino) in ceph_add_cap() 721 realm->inode = inode; in ceph_add_cap() 722 spin_unlock(&realm->inodes_with_caps_lock); in ceph_add_cap() 727 pr_err("ceph_add_cap: couldn't find snap realm in ceph_add_cap() 1121 struct ceph_snap_realm *realm = ci->i_snap_realm; drop_inode_snap_realm() local 4102 struct ceph_snap_realm *realm = NULL; ceph_handle_caps() local [all...] |
H A D | inode.c | 570 struct ceph_snap_realm *realm = ci->i_snap_realm; in ceph_evict_inode() local 571 dout(" dropping residual ref to snap realm %p\n", in ceph_evict_inode() 572 realm); in ceph_evict_inode() 573 spin_lock(&realm->inodes_with_caps_lock); in ceph_evict_inode() 576 if (realm->ino == ci->i_vino.ino) in ceph_evict_inode() 577 realm->inode = NULL; in ceph_evict_inode() 578 spin_unlock(&realm->inodes_with_caps_lock); in ceph_evict_inode() 579 ceph_put_snap_realm(mdsc, realm); in ceph_evict_inode() 986 le64_to_cpu(info->cap.realm), in ceph_fill_inode()
|
H A D | mds_client.c | 3129 struct ceph_snap_realm *realm; in handle_reply() local 3248 realm = NULL; in handle_reply() 3254 &realm); in handle_reply() 3273 if (realm) in handle_reply() 3274 ceph_put_snap_realm(mdsc, realm); in handle_reply() 3624 /* can't handle message that contains both caps and realm */ in send_reconnect_partial() 3923 struct ceph_snap_realm *realm = in encode_snap_realms() local 3947 dout(" adding snap realm %llx seq %lld parent %llx\n", in encode_snap_realms() 3948 realm->ino, realm in encode_snap_realms() [all...] |
H A D | super.h | 417 struct ceph_snap_realm *i_snap_realm; /* snap realm (if caps) */ 420 int i_snap_realm_counter; /* snap realm (if caps) */ 846 * A "snap realm" describes a subset of the file hierarchy sharing 851 * All inodes within the realm that have capabilities are linked into a 852 * per-realm list. 866 u64 *snaps; /* snaps specific to this realm */ 875 struct list_head dirty_item; /* if realm needs new context */ 877 /* the current set of snaps for this realm */ 920 struct ceph_snap_realm *realm); 922 struct ceph_snap_realm *realm); [all...] |
H A D | file.c | 610 in.cap.realm = cpu_to_le64(ci->i_snap_realm->ino); in ceph_finish_async_create()
|
/kernel/linux/linux-5.10/net/rxrpc/ |
H A D | key.c | 177 kfree(princ->realm); in rxrpc_free_krb5_principal() 271 princ->realm = kmalloc(tmp + 1, GFP_KERNEL); in rxrpc_krb5_decode_principal() 272 if (!princ->realm) in rxrpc_krb5_decode_principal() 274 memcpy(princ->realm, xdr, tmp); in rxrpc_krb5_decode_principal() 275 princ->realm[tmp] = 0; in rxrpc_krb5_decode_principal() 279 _debug("%s/...@%s", princ->name_parts[0], princ->realm); in rxrpc_krb5_decode_principal() 1085 toksize += 4 + RND(strlen(princ->realm)); in rxrpc_read() 1091 toksize += 4 + RND(strlen(princ->realm)); in rxrpc_read() 1189 ENCODE_STR(princ->realm); in rxrpc_read() 1195 ENCODE_STR(princ->realm); in rxrpc_read() [all...] |
/kernel/linux/linux-5.10/include/keys/ |
H A D | rxrpc-type.h | 36 * name/name/name@realm 41 char *realm; /* parts of the realm part of the principal */ member 121 #define AFSTOKEN_K5_REALM_MAX 64 /* max K5 realm name length */
|
/kernel/linux/linux-5.10/include/linux/ceph/ |
H A D | ceph_fs.h | 501 __le64 realm; /* snap realm */ member 708 __le64 ino, realm; member 793 __le64 ino; /* snap realm base */ 794 __le64 seq; /* snap seq for this snap realm */ 795 __le64 parent; /* parent realm */ 814 __le32 num_split_inos; /* # inos belonging to new child realm */ 815 __le32 num_split_realms; /* # child realms udner new child realm */ 826 __le64 parent; /* ino: parent realm */
|
/kernel/linux/linux-6.6/include/linux/ceph/ |
H A D | ceph_fs.h | 568 __le64 realm; /* snap realm */ member 775 __le64 ino, realm; member 860 __le64 ino; /* snap realm base */ 861 __le64 seq; /* snap seq for this snap realm */ 862 __le64 parent; /* parent realm */ 881 __le32 num_split_inos; /* # inos belonging to new child realm */ 882 __le32 num_split_realms; /* # child realms udner new child realm */ 893 __le64 parent; /* ino: parent realm */
|
/kernel/linux/linux-6.6/net/rxrpc/ |
H A D | rxkad.c | 928 name = Z(REALM, realm); in rxkad_decrypt_ticket()
|