diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/export.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 0e1f5d1f1c14..eccd2c2eb60d 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c | |||
@@ -1086,7 +1086,7 @@ static void *e_start(struct seq_file *m, loff_t *pos) | |||
1086 | exp_readlock(); | 1086 | exp_readlock(); |
1087 | read_lock(&svc_export_cache.hash_lock); | 1087 | read_lock(&svc_export_cache.hash_lock); |
1088 | if (!n--) | 1088 | if (!n--) |
1089 | return (void *)1; | 1089 | return SEQ_START_TOKEN; |
1090 | hash = n >> 32; | 1090 | hash = n >> 32; |
1091 | export = n & ((1LL<<32) - 1); | 1091 | export = n & ((1LL<<32) - 1); |
1092 | 1092 | ||
@@ -1110,7 +1110,7 @@ static void *e_next(struct seq_file *m, void *p, loff_t *pos) | |||
1110 | struct cache_head *ch = p; | 1110 | struct cache_head *ch = p; |
1111 | int hash = (*pos >> 32); | 1111 | int hash = (*pos >> 32); |
1112 | 1112 | ||
1113 | if (p == (void *)1) | 1113 | if (p == SEQ_START_TOKEN) |
1114 | hash = 0; | 1114 | hash = 0; |
1115 | else if (ch->next == NULL) { | 1115 | else if (ch->next == NULL) { |
1116 | hash++; | 1116 | hash++; |
@@ -1179,7 +1179,7 @@ static int e_show(struct seq_file *m, void *p) | |||
1179 | struct cache_head *cp = p; | 1179 | struct cache_head *cp = p; |
1180 | struct svc_export *exp = container_of(cp, struct svc_export, h); | 1180 | struct svc_export *exp = container_of(cp, struct svc_export, h); |
1181 | 1181 | ||
1182 | if (p == (void *)1) { | 1182 | if (p == SEQ_START_TOKEN) { |
1183 | seq_puts(m, "# Version 1.1\n"); | 1183 | seq_puts(m, "# Version 1.1\n"); |
1184 | seq_puts(m, "# Path Client(Flags) # IPs\n"); | 1184 | seq_puts(m, "# Path Client(Flags) # IPs\n"); |
1185 | return 0; | 1185 | return 0; |