aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorJ.Bruce Fields <bfields@fieldses.org>2006-10-04 05:16:10 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-04 10:55:20 -0400
commitd0ebd9c0e71d20ea8c2b4a071d2a2b4878ef07d6 (patch)
tree703b61a59254506f322894281c35a0b224ae6905 /fs/nfsd
parentf38b20c64519bb812a49b9ef4e10d90367a5af5c (diff)
[PATCH] knfsd: nfsd4: clean up exp_pseudoroot
The previous patch enables some minor simplification here. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/export.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index ac5149d25372..597b3cbf8b0b 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -1058,14 +1058,11 @@ exp_pseudoroot(struct auth_domain *clp, struct svc_fh *fhp,
1058 if (IS_ERR(exp) && PTR_ERR(exp) == -EAGAIN) 1058 if (IS_ERR(exp) && PTR_ERR(exp) == -EAGAIN)
1059 return nfserr_dropit; 1059 return nfserr_dropit;
1060 if (exp == NULL) 1060 if (exp == NULL)
1061 rv = nfserr_perm; 1061 return nfserr_perm;
1062 else if (IS_ERR(exp)) 1062 else if (IS_ERR(exp))
1063 rv = nfserrno(PTR_ERR(exp)); 1063 return nfserrno(PTR_ERR(exp));
1064 else { 1064 rv = fh_compose(fhp, exp, exp->ex_dentry, NULL);
1065 rv = fh_compose(fhp, exp, 1065 exp_put(exp);
1066 exp->ex_dentry, NULL);
1067 exp_put(exp);
1068 }
1069 return rv; 1066 return rv;
1070} 1067}
1071 1068