nfsd4: fix error return when pseudoroot missing
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 27 Sep 2009 18:41:43 +0000 (14:41 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 28 Sep 2009 16:21:26 +0000 (12:21 -0400)
commitf39bde24b275ddc45df1ed835725b609e178c7a0
tree17708324bb82f3fb4db2e9902dbcc9de03cbc1ff
parent289ede453e5a621de19c61e630302b1845cc1d59
nfsd4: fix error return when pseudoroot missing

We really shouldn't hit this case at all, and forthcoming kernel and
nfs-utils changes should eliminate this case; if it does happen,
consider it a bug rather than reporting an error that doesn't really
make sense for the operation (since there's no reason for a server to be
accepting v4 traffic yet have no root filehandle).

Also move some exp_pseudoroot code into a helper function while we're
here.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/export.c
fs/nfsd/nfsproc.c