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)
commited748aacb8e3318fa2cf24e1c197d35b5fd29605
treecee8fdf89ec8019b0dd3cd3e10eca4df05e6c4e5
parentee626a77d3725a129391b1c85edd46f3b470cca9
NFSD: Cleanup for nfsd4_path()

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>
fs/nfsd/export.c
fs/nfsd/nfs4xdr.c
include/linux/nfsd/export.h