• Trond Myklebust's avatar
    NFSv4: Update the attribute cache info in update_changeattr · e603a4c1
    Trond Myklebust authored
    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: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
    e603a4c1
nfs4proc.c 254 KB