/* Replace a per-inode cookie due to revalidation detecting a file having changed on the server.  */
void nfs_fscache_reset_inode_cookie(struct inode *inode)
/* Replace a per-inode cookie due to revalidation detecting a file having changed on the server.  */
void nfs_fscache_reset_inode_cookie(struct inode *inode)
{
	struct nfs_inode *nfsi = NFS_I(inode);
	struct nfs_server *nfss = NFS_SERVER(inode);
	struct fscache_cookie *old = nfsi->fscache;
	nfs_fscache_inode_lock(inode);
	if (nfsi->fscache) {
		fscache_relinquish_cookie(nfsi->fscache, 1);
		nfsi->fscache = fscache_acquire_cookie(
			nfss->nfs_client->fscache,
			&nfs_fscache_inode_object_def,
			nfsi);
		dfprintk(FSCACHE,
			 "NFS: revalidation new cookie (0x%p/0x%p/0x%p/0x%p)\n",
			 nfss, nfsi, old, nfsi->fscache);
	}
	nfs_fscache_inode_unlock(inode);
}