ceph: make d_revalidate call fscrypt revalidator for encrypted dentries
authorJeff Layton <jlayton@kernel.org>
Fri, 7 Aug 2020 19:47:17 +0000 (15:47 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 24 Aug 2023 09:24:34 +0000 (11:24 +0200)
commitc526760181ca083dbd607d2e694b43080a8b1585
treef7356dc079306796797512c2a9e81451896f3dff
parentcb3524a8bd96fbc614e0f9295866c28dc17cafe6
ceph: make d_revalidate call fscrypt revalidator for encrypted dentries

If we have a dentry which represents a no-key name, then we need to test
whether the parent directory's encryption key has since been added.  Do
that before we test anything else about the dentry.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-and-tested-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/dir.c