]> git.baikalelectronics.ru Git - kernel.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)
commiteb015ddf0307e192e38627e5ea877137db1cf583
tree9d2f967c9ccd47dd73e2a730a1f6f1d020f6fe58
parent37dd0c033c422bc39e36d4a05506ac8cd973ccd5
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