From: Joe Perches <joe@perches.com>
To: linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Subject: [PATCH] 2.6.0-test4 SEQ_START_TOKEN drivers/md (4/6)
Date: Fri, 05 Sep 2003 18:47:42 -0700 [thread overview]
Message-ID: <1062812862.16851.169.camel@localhost.localdomain> (raw)
diff -urN linux-2.6.0-test4/drivers/md/md.c SEQ_START_TOKEN/drivers/md/md.c
-- linux-2.6.0-test4/drivers/md/md.c 2003-09-02 12:52:39.000000000 -0700
+++ SEQ_START_TOKEN/drivers/md/md.c 2003-09-04 19:50:46.000000000 -0700
@@ -2858,7 +2858,7 @@
return NULL;
if (!l--)
/* header */
- return (void*)1;
+ return SEQ_START_TOKEN;
spin_lock(&all_mddevs_lock);
list_for_each(tmp,&all_mddevs)
@@ -2884,7 +2884,7 @@
return NULL;
spin_lock(&all_mddevs_lock);
- if (v == (void*)1)
+ if (v == SEQ_START_TOKEN)
tmp = all_mddevs.next;
else
tmp = mddev->all_mddevs.next;
@@ -2896,7 +2896,7 @@
}
spin_unlock(&all_mddevs_lock);
- if (v != (void*)1)
+ if (v != SEQ_START_TOKEN)
mddev_put(mddev);
return next_mddev;
@@ -2906,7 +2906,7 @@
{
mddev_t *mddev = v;
- if (mddev && v != (void*)1 && v != (void*)2)
+ if (mddev && v != SEQ_START_TOKEN && v != (void*)2)
mddev_put(mddev);
}
@@ -2918,7 +2918,7 @@
mdk_rdev_t *rdev;
int i;
- if (v == (void*)1) {
+ if (v == SEQ_START_TOKEN) {
seq_printf(seq, "Personalities : ");
spin_lock(&pers_lock);
for (i = 0; i < MAX_PERSONALITY; i++)
reply other threads:[~2003-09-06 1:47 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=1062812862.16851.169.camel@localhost.localdomain \
--to=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.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