From: Andries.Brouwer@cwi.nl
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] kafstimod.c fix: make timeouts unsigned long
Date: Tue, 8 Apr 2003 11:15:00 +0200 (MEST) [thread overview]
Message-ID: <UTC200304080915.h389F0c02423.aeb@smtp.cwi.nl> (raw)
diff -u --recursive --new-file -X /linux/dontdiff a/fs/afs/kafstimod.c b/fs/afs/kafstimod.c
--- a/fs/afs/kafstimod.c Sat Feb 15 20:42:01 2003
+++ b/fs/afs/kafstimod.c Tue Mar 18 15:05:28 2003
@@ -99,18 +99,18 @@
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);
reply other threads:[~2003-04-08 9:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=UTC200304080915.h389F0c02423.aeb@smtp.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®