]> www.infradead.org Git - users/willy/pagecache.git/commit
ceph_d_revalidate(): propagate stable name down into request encoding
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 7 Jan 2025 15:04:11 +0000 (10:04 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 28 Jan 2025 00:25:23 +0000 (19:25 -0500)
commit541795cb0be6e29f79deff50831bc6caa72b5f8e
tree4664880c2844c8a78ef7b30b16fd745c80d59b3c
parentbf636ed4a9521617ea309b063d8f67522d75a203
ceph_d_revalidate(): propagate stable name down into request encoding

Currently get_fscrypt_altname() requires ->r_dentry->d_name to be stable
and it gets that in almost all cases.  The only exception is ->d_revalidate(),
where we have a stable name, but it's passed separately - dentry->d_name
is not stable there.

Propagate it down to get_fscrypt_altname() as a new field of struct
ceph_mds_request - ->r_dname, to be used instead ->r_dentry->d_name
when non-NULL.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ceph/dir.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h