@@ -282,7 +282,7 @@ struct sctp_ht_iter {
282
282
struct rhashtable_iter hti ;
283
283
};
284
284
285
- static void * sctp_assocs_seq_start (struct seq_file * seq , loff_t * pos )
285
+ static void * sctp_transport_seq_start (struct seq_file * seq , loff_t * pos )
286
286
{
287
287
struct sctp_ht_iter * iter = seq -> private ;
288
288
int err = sctp_transport_walk_start (& iter -> hti );
@@ -293,14 +293,14 @@ static void *sctp_assocs_seq_start(struct seq_file *seq, loff_t *pos)
293
293
return sctp_transport_get_idx (seq_file_net (seq ), & iter -> hti , * pos );
294
294
}
295
295
296
- static void sctp_assocs_seq_stop (struct seq_file * seq , void * v )
296
+ static void sctp_transport_seq_stop (struct seq_file * seq , void * v )
297
297
{
298
298
struct sctp_ht_iter * iter = seq -> private ;
299
299
300
300
sctp_transport_walk_stop (& iter -> hti );
301
301
}
302
302
303
- static void * sctp_assocs_seq_next (struct seq_file * seq , void * v , loff_t * pos )
303
+ static void * sctp_transport_seq_next (struct seq_file * seq , void * v , loff_t * pos )
304
304
{
305
305
struct sctp_ht_iter * iter = seq -> private ;
306
306
@@ -367,9 +367,9 @@ static int sctp_assocs_seq_show(struct seq_file *seq, void *v)
367
367
}
368
368
369
369
static const struct seq_operations sctp_assoc_ops = {
370
- .start = sctp_assocs_seq_start ,
371
- .next = sctp_assocs_seq_next ,
372
- .stop = sctp_assocs_seq_stop ,
370
+ .start = sctp_transport_seq_start ,
371
+ .next = sctp_transport_seq_next ,
372
+ .stop = sctp_transport_seq_stop ,
373
373
.show = sctp_assocs_seq_show ,
374
374
};
375
375
@@ -406,33 +406,6 @@ void sctp_assocs_proc_exit(struct net *net)
406
406
remove_proc_entry ("assocs" , net -> sctp .proc_net_sctp );
407
407
}
408
408
409
- static void * sctp_remaddr_seq_start (struct seq_file * seq , loff_t * pos )
410
- {
411
- struct sctp_ht_iter * iter = seq -> private ;
412
- int err = sctp_transport_walk_start (& iter -> hti );
413
-
414
- if (err )
415
- return ERR_PTR (err );
416
-
417
- return sctp_transport_get_idx (seq_file_net (seq ), & iter -> hti , * pos );
418
- }
419
-
420
- static void * sctp_remaddr_seq_next (struct seq_file * seq , void * v , loff_t * pos )
421
- {
422
- struct sctp_ht_iter * iter = seq -> private ;
423
-
424
- ++ * pos ;
425
-
426
- return sctp_transport_get_next (seq_file_net (seq ), & iter -> hti );
427
- }
428
-
429
- static void sctp_remaddr_seq_stop (struct seq_file * seq , void * v )
430
- {
431
- struct sctp_ht_iter * iter = seq -> private ;
432
-
433
- sctp_transport_walk_stop (& iter -> hti );
434
- }
435
-
436
409
static int sctp_remaddr_seq_show (struct seq_file * seq , void * v )
437
410
{
438
411
struct sctp_association * assoc ;
@@ -506,9 +479,9 @@ static int sctp_remaddr_seq_show(struct seq_file *seq, void *v)
506
479
}
507
480
508
481
static const struct seq_operations sctp_remaddr_ops = {
509
- .start = sctp_remaddr_seq_start ,
510
- .next = sctp_remaddr_seq_next ,
511
- .stop = sctp_remaddr_seq_stop ,
482
+ .start = sctp_transport_seq_start ,
483
+ .next = sctp_transport_seq_next ,
484
+ .stop = sctp_transport_seq_stop ,
512
485
.show = sctp_remaddr_seq_show ,
513
486
};
514
487
0 commit comments