diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-03-08 22:42:55 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-03-09 00:32:11 +0300 |
commit | b6f80a2ebb97f184c4679518ac83074598bf9bf4 (patch) | |
tree | dce5dcdab7f056ef145b9977860313edb222a50b /fs/nfs/inode.c | |
parent | ac46b3d768e4c2754f7b191b81e1bea582e11907 (diff) | |
download | linux-b6f80a2ebb97f184c4679518ac83074598bf9bf4.tar.xz |
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>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index eb1ae77f411a..a7fb076a5f44 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -229,6 +229,7 @@ void nfs_set_cache_invalid(struct inode *inode, unsigned long flags) if (flags & NFS_INO_INVALID_DATA) nfs_fscache_invalidate(inode); } +EXPORT_SYMBOL_GPL(nfs_set_cache_invalid); /* * Invalidate the local caches |