/* Check that fs_locations::fs_root  is a prefix for what we believe to be the server path to this dentry  */
static int nfs4_validate_fspath(const struct vfsmount *mnt_parent, const struct dentry *dentry, const struct nfs4_fs_locations *locations, char *page, char *page2)
/* Check that fs_locations::fs_root  is a prefix for what we believe to be the server path to this dentry  */
static int nfs4_validate_fspath(const struct vfsmount *mnt_parent, const struct dentry *dentry, const struct nfs4_fs_locations *locations, char *page, char *page2)
{
	const char *path, *fs_path;
	path = nfs4_path(mnt_parent, dentry, page, PAGE_SIZE);
	if (IS_ERR(path))
		return PTR_ERR(path);
	fs_path = nfs4_pathname_string(&locations->fs_path, page2, PAGE_SIZE);
	if (IS_ERR(fs_path))
		return PTR_ERR(fs_path);
	if (strncmp(path, fs_path, strlen(fs_path)) != 0) {
		dprintk("%s: path %s does not begin with fsroot %s\n",
			__func__, path, fs_path);
		return -ENOENT;
	}
	return 0;
}