NFS: Clean up cache validity checking
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 8 Dec 2016 23:18:38 +0000 (18:18 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 19 Dec 2016 22:29:35 +0000 (17:29 -0500)
commit61540bf6bb40ddfa3e766de91cedca2e1afd24eb
tree36d2a5f7ad7086cb0cdde12bdd6907676db080f0
parent58ff41842c7b8b8a79752e3d040188ebddb95194
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>
fs/nfs/file.c
fs/nfs/inode.c
fs/nfs/internal.h