diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-03-25 18:04:34 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-04-13 03:11:44 +0300 |
commit | 1f3208b2d6975f31b9c7c6bf174b84fe9c97492f (patch) | |
tree | b03cdcc080103432771c5cc12e526cdbb0151d18 /fs/nfs/export.c | |
parent | 1f9f4328155a6944903e2364f38bb6ed1e1ea9e9 (diff) | |
download | linux-1f3208b2d6975f31b9c7c6bf174b84fe9c97492f.tar.xz |
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.c | 6 |
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); } |