NFS_ATTR_FATTR_V4_REFERRAL flag can be set only via either nfs4_proc_lookup() or nfs_do_refmount(), so that check never satisfy. Signed-off-by: Gusev Vitaliy <gusev.vitaliy@xxxxxxxxxxx> --- diff --git a/fs/nfs/getroot.c b/fs/nfs/getroot.c index b5ffe8f..3031ef7 100644 --- a/fs/nfs/getroot.c +++ b/fs/nfs/getroot.c @@ -152,13 +152,6 @@ int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh) goto out; } - if (fsinfo.fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) { - printk(KERN_ERR "nfs4_get_rootfh:" - " getroot obtained referral\n"); - ret = -EREMOTE; - goto out; - } - memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); out: nfs_free_fattr(fsinfo.fattr); -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html