NFSD: Cleanup for nfsd4_path()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 12 Sep 2011 23:37:06 +0000 (19:37 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 14 Sep 2011 02:43:42 +0000 (22:43 -0400)
The current code is sort of hackish in that it assumes a referral is always
matched to an export. When we add support for junctions that may not be the
case.
We can replace nfsd4_path() with a function that encodes the components
directly from the dentries. Since nfsd4_path is currently the only user of
the 'ex_pathname' field in struct svc_export, this has the added benefit
of allowing us to get rid of that.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

No differences found