NFS: Fix up a sparse warning
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 2 Jan 2023 01:17:23 +0000 (20:17 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 2 Jan 2023 01:17:26 +0000 (20:17 -0500)
commit5e9a7b9c2ea18551759833146a181b14835bfe39
tree00ed386ff79242b1d12a22636dfe72217736cf2b
parent029085b8949f5d269ae2bbd14915407dd0c7f902
NFS: Fix up a sparse warning

sparse is warning about an incorrect RCU dereference.
fs/nfs/dir.c:2965:56: warning: incorrect type in argument 1 (different address spaces)
fs/nfs/dir.c:2965:56:    expected struct cred const *
fs/nfs/dir.c:2965:56:    got struct cred const [noderef] __rcu *const cred

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c