projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc4da2a
)
nfs: Remove invalid NFS_ATTR_FATTR_V4_REFERRAL checking in nfs4_get_rootfh
author
Kinglong Mee
<kinglongmee@gmail.com>
Wed, 1 Jul 2015 03:59:42 +0000
(11:59 +0800)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Wed, 1 Jul 2015 15:31:22 +0000
(11:31 -0400)
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>
fs/nfs/nfs4getroot.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4getroot.c
b/fs/nfs/nfs4getroot.c
index
c0b3a16
..
039b3eb
100644
(file)
--- 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
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);