Skip to content

Commit

Permalink
[PATCH] knfsd: nfsd4: clean up exp_pseudoroot
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
J.Bruce Fields authored and Linus Torvalds committed Oct 4, 2006
1 parent f38b20c commit d0ebd9c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions fs/nfsd/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -1058,14 +1058,11 @@ exp_pseudoroot(struct auth_domain *clp, struct svc_fh *fhp,
if (IS_ERR(exp) && PTR_ERR(exp) == -EAGAIN)
return nfserr_dropit;
if (exp == NULL)
rv = nfserr_perm;
return nfserr_perm;
else if (IS_ERR(exp))
rv = nfserrno(PTR_ERR(exp));
else {
rv = fh_compose(fhp, exp,
exp->ex_dentry, NULL);
exp_put(exp);
}
return nfserrno(PTR_ERR(exp));
rv = fh_compose(fhp, exp, exp->ex_dentry, NULL);
exp_put(exp);
return rv;
}

Expand Down

0 comments on commit d0ebd9c

Please sign in to comment.