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 fs/* (6/6)
Date: Fri, 05 Sep 2003 18:48:23 -0700 [thread overview]
Message-ID: <1062812902.16851.173.camel@localhost.localdomain> (raw)
diff -urN linux-2.6.0-test4/fs/afs/proc.c SEQ_START_TOKEN/fs/afs/proc.c
-- linux-2.6.0-test4/fs/afs/proc.c 2003-08-22 16:53:39.000000000 -0700
+++ SEQ_START_TOKEN/fs/afs/proc.c 2003-09-04 20:13:29.000000000 -0700
@@ -188,7 +188,7 @@
/* allow for the header line */
if (!pos)
- return (void *)1;
+ return SEQ_START_TOKEN;
pos--;
/* find the n'th element in the list */
@@ -210,7 +210,7 @@
(*pos)++;
_p = v;
- _p = v==(void*)1 ? afs_proc_cells.next : _p->next;
+ _p = v==SEQ_START_TOKEN ? afs_proc_cells.next : _p->next;
return _p!=&afs_proc_cells ? _p : NULL;
} /* end afs_proc_cells_next() */
@@ -234,7 +234,7 @@
afs_cell_t *cell = list_entry(v,afs_cell_t,proc_link);
/* display header on line 1 */
- if (v == (void *)1) {
+ if (v == SEQ_START_TOKEN) {
seq_puts(m, "USE NAME\n");
return 0;
}
@@ -432,7 +432,7 @@
/* allow for the header line */
if (!pos)
- return (void *)1;
+ return SEQ_START_TOKEN;
pos--;
/* find the n'th element in the list */
@@ -457,7 +457,7 @@
(*_pos)++;
_p = v;
- _p = v==(void*)1 ? cell->vl_list.next : _p->next;
+ _p = v==SEQ_START_TOKEN ? cell->vl_list.next : _p->next;
return _p!=&cell->vl_list ? _p : NULL;
} /* end afs_proc_cell_volumes_next() */
@@ -483,7 +483,7 @@
afs_vlocation_t *vlocation = list_entry(v,afs_vlocation_t,link);
/* display header on line 1 */
- if (v == (void *)1) {
+ if (v == SEQ_START_TOKEN) {
seq_puts(m, "USE VLID[0] VLID[1] VLID[2] NAME\n");
return 0;
}
@@ -556,7 +556,7 @@
/* allow for the header line */
if (!pos)
- return (void *)1;
+ return SEQ_START_TOKEN;
pos--;
if (pos>=cell->vl_naddrs)
@@ -673,7 +673,7 @@
/* allow for the header line */
if (!pos)
- return (void *)1;
+ return SEQ_START_TOKEN;
pos--;
/* find the n'th element in the list */
@@ -698,7 +698,7 @@
(*_pos)++;
_p = v;
- _p = v==(void*)1 ? cell->sv_list.next : _p->next;
+ _p = v==SEQ_START_TOKEN ? cell->sv_list.next : _p->next;
return _p!=&cell->sv_list ? _p : NULL;
} /* end afs_proc_cell_servers_next() */
@@ -725,7 +725,7 @@
char ipaddr[20];
/* display header on line 1 */
- if (v == (void *)1) {
+ if (v == SEQ_START_TOKEN) {
seq_puts(m, "USE ADDR STATE\n");
return 0;
}
diff -urN linux-2.6.0-test4/fs/nfsd/export.c SEQ_START_TOKEN/fs/nfsd/export.c
-- linux-2.6.0-test4/fs/nfsd/export.c 2003-08-22 16:57:00.000000000 -0700
+++ SEQ_START_TOKEN/fs/nfsd/export.c 2003-09-04 19:51:24.000000000 -0700
@@ -935,7 +935,7 @@
exp_readlock();
read_lock(&svc_export_cache.hash_lock);
if (!n--)
- return (void *)1;
+ return SEQ_START_TOKEN;
hash = n >> 32;
export = n & ((1LL<<32) - 1);
@@ -959,7 +959,7 @@
struct cache_head *ch = p;
int hash = (*pos >> 32);
- if (p == (void *)1)
+ if (p == SEQ_START_TOKEN)
hash = 0;
else if (ch->next == NULL) {
hash++;
@@ -1029,7 +1029,7 @@
struct svc_export *exp = container_of(cp, struct svc_export, h);
svc_client *clp;
- if (p == (void *)1) {
+ if (p == SEQ_START_TOKEN) {
seq_puts(m, "# Version 1.1\n");
seq_puts(m, "# Path Client(Flags) # IPs\n");
return 0;
reply other threads:[~2003-09-06 1:48 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=1062812902.16851.173.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