Skip to content

Commit

Permalink
NLM: Clean up before introducing new debugging messages
Browse files Browse the repository at this point in the history
We're about to introduce some extra debugging messages in nlm_lookup_host().
Bring the coding style up to date first so we can cleanly introduce the new
debugging messages.

Signed-off-by: Chuck Lever <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
chucklever authored and J. Bruce Fields committed Sep 29, 2008
1 parent a26cfad commit c2526f4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,19 @@ static struct nlm_host *nlm_lookup_host(int server,
nlm_get_host(host);
goto out;
}
if (nsm)
atomic_inc(&nsm->sm_count);

host = NULL;

/* Sadly, the host isn't in our hash table yet. See if
* we have an NSM handle for it. If not, create one.
/*
* The host wasn't in our hash table. If we don't
* have an NSM handle for it yet, create one.
*/
if (!nsm && !(nsm = nsm_find(sin, hostname, hostname_len)))
goto out;
if (nsm)
atomic_inc(&nsm->sm_count);
else {
host = NULL;
nsm = nsm_find(sin, hostname, hostname_len);
if (!nsm)
goto out;
}

host = kzalloc(sizeof(*host), GFP_KERNEL);
if (!host) {
Expand Down

0 comments on commit c2526f4

Please sign in to comment.