NFS: Fix open coded versions of nfs_set_cache_invalid() in NFSv4
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 8 Mar 2021 19:42:55 +0000 (14:42 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Mar 2021 21:32:11 +0000 (16:32 -0500)
commitb6f80a2ebb97f184c4679518ac83074598bf9bf4
treedce5dcdab7f056ef145b9977860313edb222a50b
parentac46b3d768e4c2754f7b191b81e1bea582e11907
NFS: Fix open coded versions of nfs_set_cache_invalid() in NFSv4

nfs_set_cache_invalid() has code to handle delegations, and other
optimisations, so let's use it when appropriate.

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