/* A check for whether or not the parent directory has changed. In the case it has, we assume that the dentries are untrustworthy and may need to be looked up again.  */
static int nfs_check_verifier(struct inode *dir, struct dentry *dentry)
/* A check for whether or not the parent directory has changed. In the case it has, we assume that the dentries are untrustworthy and may need to be looked up again.  */
static int nfs_check_verifier(struct inode *dir, struct dentry *dentry)
{
	if (IS_ROOT(dentry))
		return 1;
	if (NFS_SERVER(dir)->flags & NFS_MOUNT_LOOKUP_CACHE_NONE)
		return 0;
	if (!nfs_verify_change_attribute(dir, dentry->d_time))
		return 0;
	if (nfs_revalidate_inode(NFS_SERVER(dir), dir) < 0)
		return 0;
	if (!nfs_verify_change_attribute(dir, dentry->d_time))
		return 0;
	return 1;
}