@@ -38,7 +38,7 @@ struct afs_server *afs_find_server(struct afs_net *net, const struct rxrpc_peer
38
38
seq ++ ; /* 2 on the 1st/lockless path, otherwise odd */
39
39
read_seqbegin_or_lock (& net -> fs_addr_lock , & seq );
40
40
41
- hlist_for_each_entry_rcu (server , & net -> fs_addresses6 , addr6_link ) {
41
+ hlist_for_each_entry_rcu (server , & net -> fs_addresses , addr_link ) {
42
42
estate = rcu_dereference (server -> endpoint_state );
43
43
alist = estate -> addresses ;
44
44
for (i = 0 ; i < alist -> nr_addrs ; i ++ )
@@ -177,10 +177,8 @@ static struct afs_server *afs_install_server(struct afs_cell *cell,
177
177
* bit, but anything we might want to do gets messy and memory
178
178
* intensive.
179
179
*/
180
- if (alist -> nr_ipv4 > 0 )
181
- hlist_add_head_rcu (& server -> addr4_link , & net -> fs_addresses4 );
182
- if (alist -> nr_addrs > alist -> nr_ipv4 )
183
- hlist_add_head_rcu (& server -> addr6_link , & net -> fs_addresses6 );
180
+ if (alist -> nr_addrs > 0 )
181
+ hlist_add_head_rcu (& server -> addr_link , & net -> fs_addresses );
184
182
185
183
write_sequnlock (& net -> fs_addr_lock );
186
184
@@ -511,10 +509,8 @@ static void afs_gc_servers(struct afs_net *net, struct afs_server *gc_list)
511
509
512
510
list_del (& server -> probe_link );
513
511
hlist_del_rcu (& server -> proc_link );
514
- if (!hlist_unhashed (& server -> addr4_link ))
515
- hlist_del_rcu (& server -> addr4_link );
516
- if (!hlist_unhashed (& server -> addr6_link ))
517
- hlist_del_rcu (& server -> addr6_link );
512
+ if (!hlist_unhashed (& server -> addr_link ))
513
+ hlist_del_rcu (& server -> addr_link );
518
514
}
519
515
write_sequnlock (& net -> fs_lock );
520
516
0 commit comments