diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2015-06-30 23:59:42 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-07-01 11:31:22 -0400 |
commit | d356a7d1e75003063fd5f499366b1043a0f79f6c (patch) | |
tree | 6dff1af9c62f2acf9fb7775b48ca05c8e7de4218 | |
parent | bc4da2a2bee2aaf5ed62b8bb676a15d010af0fc0 (diff) |
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>
-rw-r--r-- | fs/nfs/nfs4getroot.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/nfs/nfs4getroot.c b/fs/nfs/nfs4getroot.c index c0b3a16b4a00..039b3eb6d834 100644 --- a/fs/nfs/nfs4getroot.c +++ b/fs/nfs/nfs4getroot.c | |||
@@ -35,13 +35,6 @@ int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh, bool auth_p | |||
35 | goto out; | 35 | goto out; |
36 | } | 36 | } |
37 | 37 | ||
38 | if (fsinfo.fattr->valid & NFS_ATTR_FATTR_V4_REFERRAL) { | ||
39 | printk(KERN_ERR "nfs4_get_rootfh:" | ||
40 | " getroot obtained referral\n"); | ||
41 | ret = -EREMOTE; | ||
42 | goto out; | ||
43 | } | ||
44 | |||
45 | memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); | 38 | memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); |
46 | out: | 39 | out: |
47 | nfs_free_fattr(fsinfo.fattr); | 40 | nfs_free_fattr(fsinfo.fattr); |