Searched refs:preflist (Results 1 – 2 of 2) sorted by relevance
/linux/fs/afs/ |
H A D | addr_prefs.c | 209 struct afs_addr_preference_list *preflist = *_preflist, *old = preflist; in afs_insert_address_pref() local 212 _enter("{%u/%u/%u},%u", preflist->ipv6_off, preflist->nr, preflist->max_prefs, index); in afs_insert_address_pref() 214 if (preflist->nr == 255) in afs_insert_address_pref() 216 if (preflist->nr >= preflist->max_prefs) { in afs_insert_address_pref() 217 max_prefs = preflist->max_prefs + 1; in afs_insert_address_pref() 218 size = struct_size(preflist, prefs, max_prefs); in afs_insert_address_pref() 220 max_prefs = min_t(size_t, (size - sizeof(*preflist)) / sizeof(*pref), 255); in afs_insert_address_pref() 221 preflist = kmalloc(size, GFP_KERNEL); in afs_insert_address_pref() 222 if (!preflist) in afs_insert_address_pref() 224 *preflist = **_preflist; in afs_insert_address_pref() [all …]
|
H A D | proc.c | 154 struct afs_addr_preference_list *preflist; in afs_proc_addr_prefs_show() local 165 preflist = rcu_dereference(net->address_prefs); in afs_proc_addr_prefs_show() 167 if (!preflist) { in afs_proc_addr_prefs_show() 173 preflist->version, preflist->ipv6_off, preflist->nr, preflist->max_prefs); in afs_proc_addr_prefs_show() 177 for (i = 0; i < preflist->nr; i++) { in afs_proc_addr_prefs_show() 178 pref = &preflist->prefs[i]; in afs_proc_addr_prefs_show()
|