Lines Matching refs:fscrypt_auth
74 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()
166 as->fscrypt_auth = kzalloc(sizeof(*as->fscrypt_auth), GFP_KERNEL); in ceph_fscrypt_prepare_context()
167 if (!as->fscrypt_auth) in ceph_fscrypt_prepare_context()
170 ctxsize = fscrypt_context_for_new_inode(as->fscrypt_auth->cfa_blob, in ceph_fscrypt_prepare_context()
175 as->fscrypt_auth->cfa_version = cpu_to_le32(CEPH_FSCRYPT_AUTH_VERSION); in ceph_fscrypt_prepare_context()
176 as->fscrypt_auth->cfa_blob_len = cpu_to_le32(ctxsize); in ceph_fscrypt_prepare_context()
178 WARN_ON_ONCE(ci->fscrypt_auth); in ceph_fscrypt_prepare_context()
179 kfree(ci->fscrypt_auth); in ceph_fscrypt_prepare_context()
180 ci->fscrypt_auth_len = ceph_fscrypt_auth_len(as->fscrypt_auth); in ceph_fscrypt_prepare_context()
181 ci->fscrypt_auth = kmemdup(as->fscrypt_auth, ci->fscrypt_auth_len, in ceph_fscrypt_prepare_context()
183 if (!ci->fscrypt_auth) in ceph_fscrypt_prepare_context()
194 swap(req->r_fscrypt_auth, as->fscrypt_auth); in ceph_fscrypt_as_ctx_to_req()