]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7da8f6779a97a5f4d77c071737341453865b9cd8
treecee8fdf89ec8019b0dd3cd3e10eca4df05e6c4e5
parent97f1689f3655368a11839f859d5d6814985534f4
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