Commit 8fda94f4 authored by Andries E. Brouwer's avatar Andries E. Brouwer Committed by Linus Torvalds

[PATCH] kafstimod.c fix: make timeouts unsigned long

parent 00f1b1eb
...@@ -99,18 +99,18 @@ static int kafstimod(void *arg) ...@@ -99,18 +99,18 @@ static int kafstimod(void *arg)
spin_lock(&kafstimod_lock); spin_lock(&kafstimod_lock);
if (list_empty(&kafstimod_list)) { if (list_empty(&kafstimod_list)) {
timeout = MAX_SCHEDULE_TIMEOUT; timeout = MAX_SCHEDULE_TIMEOUT;
} } else {
else { unsigned long tmo;
timer = list_entry(kafstimod_list.next,afs_timer_t,link);
timeout = timer->timo_jif; timer = list_entry(kafstimod_list.next,
afs_timer_t, link);
tmo = timer->timo_jif;
jif = jiffies; jif = jiffies;
if (time_before_eq(timeout,jif)) if (time_before_eq(tmo,jif))
goto immediate; goto immediate;
else { timeout = (long)tmo - (long)jiffies;
timeout = (long)timeout - (long)jiffies;
}
} }
spin_unlock(&kafstimod_lock); spin_unlock(&kafstimod_lock);
......
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