Allocations of size greater then the radix were not returning the correct
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 19 Apr 2007 03:16:33 +0000 (03:16 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 19 Apr 2007 03:16:33 +0000 (03:16 +0000)
commita03c3701f363a04210e34ae21c2148e0bb272543
treeca0a21d391c988ce30b85285e1fef25a68e3891c
parent11b89f0ee059daa6cbe2afe3cb14d8752acb3be2
Allocations of size greater then the radix were not returning the correct
starting block.  For example, the second allocation of 32 blocks was returning
block 1 instead of block 32.

Also remove a redundant check in the code that was wasting cycles.

Submitted-by: Jason Smethers <jason@smethers.net>
sys/kern/subr_alist.c