diff options
author | David S. Miller <davem@davemloft.net> | 2018-10-13 00:38:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-13 00:38:46 -0400 |
commit | d864991b220b7c62e81d21209e1fd978fd67352c (patch) | |
tree | b570a1ad6fc1b959c5bcda6ceca0b321319c01e0 /fs/afs/proc.c | |
parent | a688c53a0277d8ea21d86a5c56884892e3442c5e (diff) | |
parent | bab5c80b211035739997ebd361a679fa85b39465 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts were easy to resolve using immediate context mostly,
except the cls_u32.c one where I simply too the entire HEAD
chunk.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/afs/proc.c')
-rw-r--r-- | fs/afs/proc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/afs/proc.c b/fs/afs/proc.c index 476dcbb79713..9101f62707af 100644 --- a/fs/afs/proc.c +++ b/fs/afs/proc.c | |||
@@ -33,9 +33,8 @@ static inline struct afs_net *afs_seq2net_single(struct seq_file *m) | |||
33 | static int afs_proc_cells_show(struct seq_file *m, void *v) | 33 | static int afs_proc_cells_show(struct seq_file *m, void *v) |
34 | { | 34 | { |
35 | struct afs_cell *cell = list_entry(v, struct afs_cell, proc_link); | 35 | struct afs_cell *cell = list_entry(v, struct afs_cell, proc_link); |
36 | struct afs_net *net = afs_seq2net(m); | ||
37 | 36 | ||
38 | if (v == &net->proc_cells) { | 37 | if (v == SEQ_START_TOKEN) { |
39 | /* display header on line 1 */ | 38 | /* display header on line 1 */ |
40 | seq_puts(m, "USE NAME\n"); | 39 | seq_puts(m, "USE NAME\n"); |
41 | return 0; | 40 | return 0; |
@@ -50,12 +49,12 @@ static void *afs_proc_cells_start(struct seq_file *m, loff_t *_pos) | |||
50 | __acquires(rcu) | 49 | __acquires(rcu) |
51 | { | 50 | { |
52 | rcu_read_lock(); | 51 | rcu_read_lock(); |
53 | return seq_list_start_head(&afs_seq2net(m)->proc_cells, *_pos); | 52 | return seq_hlist_start_head_rcu(&afs_seq2net(m)->proc_cells, *_pos); |
54 | } | 53 | } |
55 | 54 | ||
56 | static void *afs_proc_cells_next(struct seq_file *m, void *v, loff_t *pos) | 55 | static void *afs_proc_cells_next(struct seq_file *m, void *v, loff_t *pos) |
57 | { | 56 | { |
58 | return seq_list_next(v, &afs_seq2net(m)->proc_cells, pos); | 57 | return seq_hlist_next_rcu(v, &afs_seq2net(m)->proc_cells, pos); |
59 | } | 58 | } |
60 | 59 | ||
61 | static void afs_proc_cells_stop(struct seq_file *m, void *v) | 60 | static void afs_proc_cells_stop(struct seq_file *m, void *v) |