Home
last modified time | relevance | path

Searched refs:fscrypt_auth (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-6.6/fs/ceph/
H A Dcrypto.c74 struct ceph_fscrypt_auth *cfa = (struct ceph_fscrypt_auth *)ci->fscrypt_auth; in ceph_crypt_get_context()
114 cia.fscrypt_auth = cfa; in ceph_crypt_set_context()
119 kfree(cia.fscrypt_auth); in ceph_crypt_set_context()
165 as->fscrypt_auth = kzalloc(sizeof(*as->fscrypt_auth), GFP_KERNEL); in ceph_fscrypt_prepare_context()
166 if (!as->fscrypt_auth) in ceph_fscrypt_prepare_context()
169 ctxsize = fscrypt_context_for_new_inode(as->fscrypt_auth->cfa_blob, in ceph_fscrypt_prepare_context()
174 as->fscrypt_auth->cfa_version = cpu_to_le32(CEPH_FSCRYPT_AUTH_VERSION); in ceph_fscrypt_prepare_context()
175 as->fscrypt_auth->cfa_blob_len = cpu_to_le32(ctxsize); in ceph_fscrypt_prepare_context()
177 WARN_ON_ONCE(ci->fscrypt_auth); in ceph_fscrypt_prepare_context()
[all...]
H A Dinode.c195 /* if encrypted, just borrow fscrypt_auth from parent */ in ceph_get_snapdir()
199 ci->fscrypt_auth = kmemdup(pci->fscrypt_auth, in ceph_get_snapdir()
202 if (ci->fscrypt_auth) { in ceph_get_snapdir()
206 dout("Failed to alloc snapdir fscrypt_auth\n"); in ceph_get_snapdir()
656 ci->fscrypt_auth = NULL; in ceph_alloc_inode()
668 kfree(ci->fscrypt_auth); in ceph_free_inode()
1020 kfree(ci->fscrypt_auth); in ceph_fill_inode()
1022 ci->fscrypt_auth = iinfo->fscrypt_auth; in ceph_fill_inode()
[all...]
H A Dcaps.c1222 u8 fscrypt_auth[sizeof(struct ceph_fscrypt_auth)]; // for context member
1324 * fscrypt_auth and fscrypt_file (version 12) in encode_cap_msg()
1326 * fscrypt_auth holds the crypto context (if any). fscrypt_file in encode_cap_msg()
1331 ceph_encode_copy(&p, arg->fscrypt_auth, arg->fscrypt_auth_len); in encode_cap_msg()
1466 memcpy(arg->fscrypt_auth, ci->fscrypt_auth, in __prep_cap()
1468 sizeof(arg->fscrypt_auth))); in __prep_cap()
1567 /* No fscrypt_auth changes from a capsnap.*/ in __send_flush_snap()
3395 u8 *fscrypt_auth; member
3506 memcmp(ci->fscrypt_auth, extra_inf
[all...]
H A Dsuper.h466 u8 *fscrypt_auth; member
1094 struct ceph_fscrypt_auth *fscrypt_auth; member
1134 struct ceph_fscrypt_auth *fscrypt_auth; member
H A Dmds_client.h92 u8 *fscrypt_auth; member
H A Dmds_client.c209 info->fscrypt_auth = NULL; in parse_reply_info_in()
216 info->fscrypt_auth = kmalloc(info->fscrypt_auth_len, in parse_reply_info_in()
218 if (!info->fscrypt_auth) in parse_reply_info_in()
220 ceph_decode_copy_safe(p, end, info->fscrypt_auth, in parse_reply_info_in()
795 kfree(info->diri.fscrypt_auth); in destroy_reply_info()
797 kfree(info->targeti.fscrypt_auth); in destroy_reply_info()
805 kfree(rde->inode.fscrypt_auth); in destroy_reply_info()
2826 /* v6: fscrypt_auth and fscrypt_file */ in encode_mclientrequest_tail()
2949 /* fscrypt_auth */ in create_request_message()
2950 len += sizeof(u32); // fscrypt_auth in create_request_message()
[all...]
H A Dxattr.c367 memcpy(val, ci->fscrypt_auth, ci->fscrypt_auth_len); in ceph_vxattrcb_fscrypt_auth()
1439 kfree(as_ctx->fscrypt_auth); in ceph_release_acl_sec_ctx()

Completed in 18 milliseconds