Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39999
b: refs/heads/master
c: 63f1031
h: refs/heads/master
i:
  39997: 030474f
  39995: f834cf5
  39991: b71cf13
  39983: 9ea56d8
  39967: 8107d0e
  39935: b6c8e1c
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 20, 2006
1 parent 34a59c3 commit b493e65
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83bbe2ef63ec4f6a22aaaa0c03bd918b38300127
refs/heads/master: 63f103111fdfc3cba00e4c94921d32362f375d93
7 changes: 3 additions & 4 deletions trunk/fs/nfsd/nfsproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,11 +579,11 @@ struct svc_version nfsd_version2 = {
/*
* Map errnos to NFS errnos.
*/
int
__be32
nfserrno (int errno)
{
static struct {
int nfserr;
__be32 nfserr;
int syserr;
} nfs_errtbl[] = {
{ nfs_ok, 0 },
Expand Down Expand Up @@ -615,11 +615,10 @@ nfserrno (int errno)
{ nfserr_badname, -ESRCH },
{ nfserr_io, -ETXTBSY },
{ nfserr_notsupp, -EOPNOTSUPP },
{ -1, -EIO }
};
int i;

for (i = 0; nfs_errtbl[i].nfserr != -1; i++) {
for (i = 0; i < ARRAY_SIZE(nfs_errtbl); i++) {
if (nfs_errtbl[i].syserr == errno)
return nfs_errtbl[i].nfserr;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/nfsd/export.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ struct svc_export * exp_parent(struct auth_domain *clp,
int exp_rootfh(struct auth_domain *,
char *path, struct knfsd_fh *, int maxsize);
int exp_pseudoroot(struct auth_domain *, struct svc_fh *fhp, struct cache_req *creq);
int nfserrno(int errno);
__be32 nfserrno(int errno);

extern struct cache_detail svc_export_cache;

Expand Down

0 comments on commit b493e65

Please sign in to comment.