]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: add ceph_encode_encrypted_dname() helper
authorXiubo Li <xiubli@redhat.com>
Mon, 14 Mar 2022 02:28:35 +0000 (10:28 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 18 Aug 2022 02:59:52 +0000 (10:59 +0800)
commit481d9b97fe9cae29c186900686bcce20bd80bb65
treed67f069d960b9944aa3d7ad006a84b9148206ead
parent831e811bb2933ff30adb425661edf01a861b2895
ceph: add ceph_encode_encrypted_dname() helper

Add a new helper that basically calls ceph_encode_encrypted_fname, but
with a qstr pointer instead of a dentry pointer. This will make it
simpler to decrypt names in a readdir reply, before we have a dentry.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/crypto.c
fs/ceph/crypto.h