]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NFSv4: Update the attribute cache info in update_changeattr
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 16 Dec 2016 21:55:55 +0000 (16:55 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 19 Dec 2016 22:29:27 +0000 (17:29 -0500)
commite603a4c1b5c2b9d24139eeb1769c5ac600318c07
tree9f06d8b234feaa0b3e27c5eab125325d611c65b3
parent2549f307b5997bf5dd91071428e8090d9faa8b1b
NFSv4: Update the attribute cache info in update_changeattr

If we successfully updated the change attribute, we should timestamp the
cache. While we do know that the other attributes are not completely up
to date, we have the NFS_INO_INVALID_ATTR flag that let us know that,
so it is valid to say that the cache has not timed out.
We can also clear NFS_INO_REVAL_PAGECACHE, since our change attribute
is now known to be valid.

Conversely, if the change attribute did not match, we should make sure to
also revalidate the access and ACL caches.

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