NFS: Fix open coded versions of nfs_set_cache_invalid()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 8 Mar 2021 19:42:54 +0000 (14:42 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Mar 2021 21:13:55 +0000 (16:13 -0500)
commitac46b3d768e4c2754f7b191b81e1bea582e11907
tree5aee269e85430fcfe804d9de57033f33a5ca97f1
parentfd6d3feed041e96b84680d0bfc1e7abc8f65de92
NFS: Fix open coded versions of nfs_set_cache_invalid()

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/dir.c
fs/nfs/inode.c
fs/nfs/unlink.c
fs/nfs/write.c