OSDN Git Service

NFSv4: Optimise away forced revalidation when we know the attributes are OK
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 27 Oct 2016 22:42:04 +0000 (18:42 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 1 Dec 2016 22:21:37 +0000 (17:21 -0500)
commit1ad13dbc85911fcf15232342205c92e250335267
tree2efa41e2ab94c12b863a93bde4e51aa729d515f0
parent3ecefc9295991eaaad4c67915c6384e5d18cc632
NFSv4: Optimise away forced revalidation when we know the attributes are OK

The NFS_INO_REVAL_FORCED flag needs to be set if we just got a delegation,
and we see that there might still be some ambiguity as to whether or not
our attribute or data cache are valid.
In practice, this means that a call to nfs_check_inode_attributes() will
have noticed a discrepancy between cached attributes and measured ones,
so let's move the setting of NFS_INO_REVAL_FORCED to there.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/delegation.c
fs/nfs/inode.c