Commit 84c138e7 authored by Chuck Lever's avatar Chuck Lever Committed by J. Bruce Fields

NFSD: Clean up switch statement in nfsd_dispatch()

Reorder the arms so the compiler places checks for the most frequent
case first.
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent dcc46991
......@@ -1030,12 +1030,12 @@ nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp)
/* Check whether we have this call in the cache. */
switch (nfsd_cache_lookup(rqstp)) {
case RC_DROPIT:
return 0;
case RC_DOIT:
break;
case RC_REPLY:
return 1;
case RC_DOIT:;
/* do it */
case RC_DROPIT:
return 0;
}
/* need to grab the location to store the status, as
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment