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)
spin_lock(&kafstimod_lock);
if (list_empty(&kafstimod_list)) {
timeout = MAX_SCHEDULE_TIMEOUT;
}
else {
timer = list_entry(kafstimod_list.next,afs_timer_t,link);
timeout = timer->timo_jif;
} else {
unsigned long tmo;
timer = list_entry(kafstimod_list.next,
afs_timer_t, link);
tmo = timer->timo_jif;
jif = jiffies;
if (time_before_eq(timeout,jif))
if (time_before_eq(tmo,jif))
goto immediate;
else {
timeout = (long)timeout - (long)jiffies;
}
timeout = (long)tmo - (long)jiffies;
}
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