NFS: Add a helper to remove case-insensitive aliases
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 17 Dec 2021 20:36:57 +0000 (15:36 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 6 Jan 2022 19:00:20 +0000 (14:00 -0500)
commit00bdadc7accfce944dc30fbc205cd28a7eed657b
treee4d2ab7b2b5e8aab6c676b7e99407ef7dce06d26
parent8ce37abdeb4c73842d16620e1da151765ac86b5e
NFS: Add a helper to remove case-insensitive aliases

When dealing with case insensitive names, the client has no idea how the
server performs the mapping, so cannot collapse the dentries into a
single representative. So both rename and unlink need to deal with the
fact that there could be several dentries representing the file, and
have to somehow force them to be revalidated. Use d_prune_aliases() as a
big hammer approach.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c
fs/nfs/internal.h
fs/nfs/nfs4proc.c