afs: Mark address lists with configured priorities
authorDavid Howells <dhowells@redhat.com>
Mon, 30 Oct 2023 08:25:44 +0000 (08:25 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 1 Jan 2024 16:37:27 +0000 (16:37 +0000)
commitd14cf8edd30678b5d1e3671466d458bf72a53e86
treea97761eaadaf322290934a18ac4e93ce1a4129f8
parentf94f70d39cc2d54079ebae934862198516315db2
afs: Mark address lists with configured priorities

Add a field to each address in an address list (afs_addr_list struct) that
records the current priority for that address according to the address
preference table.  We don't want to do this every time we use an address
list, so the version number of the address preference table is recorded in
the address list too and we only re-mark the list when we see the version
change.

These numbers are then displayed through /proc/net/afs/servers.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
fs/afs/addr_prefs.c
fs/afs/internal.h
fs/afs/proc.c