Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153701
b: refs/heads/master
c: 671e1fc
h: refs/heads/master
i:
  153699: 9eb486e
v: v3
  • Loading branch information
NeilBrown authored and J. Bruce Fields committed Jun 18, 2009
1 parent 84c237c commit 49243e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 82e12fe9244ff653f703722a8937b595e10e71f4
refs/heads/master: 671e1fcf63fd115eabcb693b06cbc2e4a3d1a3a3
6 changes: 4 additions & 2 deletions trunk/fs/nfsd/nfssvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,14 @@ nfsd_svc(unsigned short port, int nrservs)

mutex_lock(&nfsd_mutex);
dprintk("nfsd: creating service\n");
error = -EINVAL;
if (nrservs <= 0)
nrservs = 0;
if (nrservs > NFSD_MAXSERVS)
nrservs = NFSD_MAXSERVS;

error = 0;
if (nrservs == 0 && nfsd_serv == NULL)
goto out;

/* Readahead param cache - will no-op if it already exists */
error = nfsd_racache_init(2*nrservs);
if (error<0)
Expand Down

0 comments on commit 49243e5

Please sign in to comment.