From: Vitaliy Gusev <gusev.vitaliy@nexenta.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>,
David Howells <dhowells@redhat.com>,
linux-fsdevel@vger.kernel.org
Subject: [PATCH 2/3] nfs4: don't check rootfh for REFERRAL
Date: Mon, 07 Feb 2011 19:38:05 +0300 [thread overview]
Message-ID: <1297096685.20025.165.camel@vT510> (raw)
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@nexenta.com>
---
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);
reply other threads:[~2011-02-07 16:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1297096685.20025.165.camel@vT510 \
--to=gusev.vitaliy@nexenta.com \
--cc=Trond.Myklebust@netapp.com \
--cc=dhowells@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox