HomeFreeBSD

Fix an overflow bug in the blist allocator that needlessly capped max

Description

Fix an overflow bug in the blist allocator that needlessly capped max
swap size by dividing a value, which was always a multiple of 64, by

  1. Remove the code that reduced max swap size down to that cap.

Eliminate the distinction between BLIST_BMAP_RADIX and
BLIST_META_RADIX. Call them both BLIST_RADIX.

Make improvments to the blist self-test code to silence compiler
warnings and to test larger blists.

Reported by: jmallett
Reviewed by: alc
Discussed with: kib
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D25736

Details

Provenance
dougmAuthored on
Reviewer
alc
Differential Revision
D25736: Avoid overflow in blist_create, remove swap pager checks before blist_create
Parents
rS363531: clean up whitespace...
Branches
Unknown
Tags
Unknown