mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ipv{4,6}/raw: simplify ѕeq_file code
Pass the hashtable to the proc private data instead of copying it into the per-file private data. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
f455022166
commit
93cb5a1f58
3 changed files with 16 additions and 30 deletions
|
@ -48,7 +48,6 @@ void raw_proc_exit(void);
|
|||
struct raw_iter_state {
|
||||
struct seq_net_private p;
|
||||
int bucket;
|
||||
struct raw_hashinfo *h;
|
||||
};
|
||||
|
||||
static inline struct raw_iter_state *raw_seq_private(struct seq_file *seq)
|
||||
|
@ -58,9 +57,6 @@ static inline struct raw_iter_state *raw_seq_private(struct seq_file *seq)
|
|||
void *raw_seq_start(struct seq_file *seq, loff_t *pos);
|
||||
void *raw_seq_next(struct seq_file *seq, void *v, loff_t *pos);
|
||||
void raw_seq_stop(struct seq_file *seq, void *v);
|
||||
int raw_seq_open(struct inode *ino, struct file *file,
|
||||
struct raw_hashinfo *h, const struct seq_operations *ops);
|
||||
|
||||
#endif
|
||||
|
||||
int raw_hash_sk(struct sock *sk);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue