mirror of https://gitee.com/openkylin/linux.git
nfs: Remove invalid NFS_ATTR_FATTR_V4_REFERRAL checking in nfs4_get_rootfh
NFS_ATTR_FATTR_V4_REFERRAL is only set in nfs4_proc_lookup_common. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
bc4da2a2be
commit
d356a7d1e7
|
@ -35,13 +35,6 @@ int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh, bool auth_p
|
||||||
goto out;
|
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));
|
memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid));
|
||||||
out:
|
out:
|
||||||
nfs_free_fattr(fsinfo.fattr);
|
nfs_free_fattr(fsinfo.fattr);
|
||||||
|
|
Loading…
Reference in New Issue