slab: use a singly-linked list for bufctls
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 25 Sep 2019 20:17:53 +0000 (16:17 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 8 Oct 2019 21:11:11 +0000 (17:11 -0400)
commit46cfc69bdb8606be7693f88fb235cd8bd85a83a4
treee09060e41e1bd966e56ccc566a05325eca5f2628
parenta8334d4fbb80fe5c09fedf9aab461c48f7d6e305
slab: use a singly-linked list for bufctls

It saves a pointer for each bufctl.

I glanced at arena.c for the same thing.  The code for those
FOREACH-remove_if_X are a little more involved, but not a big deal.  But
the big one is untrack_free_seg, which isn't called from a list-foreach.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/mem.c
kern/include/slab.h
kern/src/slab.c