]> asedeno.scripts.mit.edu Git - linux.git/commit
afs: Do better max capacity handling on address lists
authorDavid Howells <dhowells@redhat.com>
Thu, 4 Oct 2018 08:32:27 +0000 (09:32 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 4 Oct 2018 08:32:27 +0000 (09:32 +0100)
commit68eb64c3d2fd558c606dcff6d3e8a2701388a80f
tree9d2f967c9ccd47dd73e2a730a1f6f1d020f6fe58
parentb3cfb6f567be00450d33b68f743c066af017a012
afs: Do better max capacity handling on address lists

Note the maximum allocated capacity in an afs_addr_list struct and discard
addresses that would exceed it in afs_merge_fs_addr{4,6}().

Also, since the current maximum capacity is less than 255, reduce the
relevant members to bytes.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/addr_list.c
fs/afs/internal.h