提交 6899320c 编写于 作者: J J.Bruce Fields 提交者: Linus Torvalds

[PATCH] knfsd: nfsd: simplify exp_pseudoroot

Note there's no need for special handling of -EAGAIN here; nfserrno() does
what we want already.  So this is a pure cleanup with no change in
functionality.
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: NNeil Brown <neilb@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 4b41bd85
...@@ -1163,12 +1163,10 @@ exp_pseudoroot(struct auth_domain *clp, struct svc_fh *fhp, ...@@ -1163,12 +1163,10 @@ exp_pseudoroot(struct auth_domain *clp, struct svc_fh *fhp,
mk_fsid_v1(fsidv, 0); mk_fsid_v1(fsidv, 0);
exp = exp_find(clp, 1, fsidv, creq); exp = exp_find(clp, 1, fsidv, creq);
if (IS_ERR(exp) && PTR_ERR(exp) == -EAGAIN) if (IS_ERR(exp))
return nfserr_dropit; return nfserrno(PTR_ERR(exp));
if (exp == NULL) if (exp == NULL)
return nfserr_perm; return nfserr_perm;
else if (IS_ERR(exp))
return nfserrno(PTR_ERR(exp));
rv = fh_compose(fhp, exp, exp->ex_dentry, NULL); rv = fh_compose(fhp, exp, exp->ex_dentry, NULL);
exp_put(exp); exp_put(exp);
return rv; return rv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册