git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
fs
/
lockd
/
host.c
diff --git
a/fs/lockd/host.c
b/fs/lockd/host.c
index
67f6a58
..
6bf6bef
100644
(file)
--- a/
fs/lockd/host.c
+++ b/
fs/lockd/host.c
@@
-76,7
+76,7
@@
nlm_lookup_host(int server, struct sockaddr_in *sin,
if (time_after_eq(jiffies, next_gc))
nlm_gc_hosts();
if (time_after_eq(jiffies, next_gc))
nlm_gc_hosts();
- for (hp = &nlm_hosts[hash]; (host = *hp); hp = &host->h_next) {
+ for (hp = &nlm_hosts[hash]; (host = *hp)
!= 0
; hp = &host->h_next) {
if (host->h_proto != proto)
continue;
if (host->h_version != version)
if (host->h_proto != proto)
continue;
if (host->h_version != version)
@@
-145,7
+145,7
@@
nlm_find_client(void)
down(&nlm_host_sema);
for (hash = 0 ; hash < NLM_HOST_NRHASH; hash++) {
struct nlm_host *host, **hp;
down(&nlm_host_sema);
for (hash = 0 ; hash < NLM_HOST_NRHASH; hash++) {
struct nlm_host *host, **hp;
- for (hp = &nlm_hosts[hash]; (host = *hp) ; hp = &host->h_next) {
+ for (hp = &nlm_hosts[hash]; (host = *hp)
!= 0
; hp = &host->h_next) {
if (host->h_server &&
host->h_killed == 0) {
nlm_get_host(host);
if (host->h_server &&
host->h_killed == 0) {
nlm_get_host(host);