nfsd: track filehandle aliasing in nfs4_files
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 16 Apr 2021 18:00:16 +0000 (14:00 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 19 Apr 2021 20:41:36 +0000 (16:41 -0400)
commita0ce48375a367222989c2618fe68bf34db8c7bb7
tree3113a0c813c596d7a4c23b23b04c91cabb92e10c
parentf9b60e2209213fdfcc504ba25a404977c5d08b77
nfsd: track filehandle aliasing in nfs4_files

It's unusual but possible for multiple filehandles to point to the same
file.  In that case, we may end up with multiple nfs4_files referencing
the same inode.

For delegation purposes it will turn out to be useful to flag those
cases.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c
fs/nfsd/state.h