nfs4: don't check rootfh for REFERRAL
Subsystems (2)
PATCH 2/3 nfs4: don't check rootfh for REFERRAL
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 <[email protected]>
---
fs/nfs/getroot.c +0 -0
@@ -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);