Skip to content

Commit

Permalink
nfsd4: merge last two setclientid cases
Browse files Browse the repository at this point in the history
The code here is mostly the same.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed Jun 1, 2012
1 parent 63db463 commit ad72aae
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -2212,15 +2212,10 @@ nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
if (new == NULL)
goto out;
copy_clid(new, conf);
} else if (!unconf) {
/* case 2: probable client reboot: */
new = create_client(clname, dname, rqstp, &clverifier);
if (new == NULL)
goto out;
gen_clid(new);
} else {
/* case 3: probable client reboot: */
expire_client(unconf);
} else { /* conf && !same_verf(): */
/* cases 2, 3: probable client reboot: */
if (unconf)
expire_client(unconf);
new = create_client(clname, dname, rqstp, &clverifier);
if (new == NULL)
goto out;
Expand Down

0 comments on commit ad72aae

Please sign in to comment.