aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/nfs/export.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-03-25 11:04:34 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-04-12 20:11:44 -0400
commit1f3208b2d6975f31b9c7c6bf174b84fe9c97492f (patch)
treeb03cdcc080103432771c5cc12e526cdbb0151d18 /fs/nfs/export.c
parentNFS: nfs_setattr_update_inode() should clear the suid/sgid bits (diff)
downloadwireguard-linux-1f3208b2d6975f31b9c7c6bf174b84fe9c97492f.tar.xz
wireguard-linux-1f3208b2d6975f31b9c7c6bf174b84fe9c97492f.zip
NFS: Add a cache validity flag argument to nfs_revalidate_inode()
Add an argument to nfs_revalidate_inode() to allow callers to specify which attributes they need to check for validity. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/export.c')
-rw-r--r--fs/nfs/export.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/nfs/export.c b/fs/nfs/export.c
index b347e3ce0cc8..37a1a88df771 100644
--- a/fs/nfs/export.c
+++ b/fs/nfs/export.c
@@ -169,11 +169,7 @@ out:
static u64 nfs_fetch_iversion(struct inode *inode)
{
- struct nfs_server *server = NFS_SERVER(inode);
-
- if (nfs_check_cache_invalid(inode, NFS_INO_INVALID_CHANGE |
- NFS_INO_REVAL_PAGECACHE))
- __nfs_revalidate_inode(server, inode);
+ nfs_revalidate_inode(inode, NFS_INO_INVALID_CHANGE);
return inode_peek_iversion_raw(inode);
}