diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-12-09 02:18:38 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-12-20 01:29:35 +0300 |
commit | 61540bf6bb40ddfa3e766de91cedca2e1afd24eb (patch) | |
tree | 36d2a5f7ad7086cb0cdde12bdd6907676db080f0 /fs/nfs/internal.h | |
parent | 58ff41842c7b8b8a79752e3d040188ebddb95194 (diff) | |
download | linux-61540bf6bb40ddfa3e766de91cedca2e1afd24eb.tar.xz |
NFS: Clean up cache validity checking
Consolidate the open-coded checking of NFS_I(inode)->cache_validity
into a couple of helper functions.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 6b79c2ca9b9a..09ca5095c04e 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -381,6 +381,7 @@ extern int nfs_drop_inode(struct inode *); extern void nfs_clear_inode(struct inode *); extern void nfs_evict_inode(struct inode *); void nfs_zap_acl_cache(struct inode *inode); +extern bool nfs_check_cache_invalid(struct inode *, unsigned long); extern int nfs_wait_bit_killable(struct wait_bit_key *key, int mode); extern int nfs_wait_atomic_killable(atomic_t *p); |