]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Add more comments and ASSERTions in the cache allocator
authorPaul Durrant <pdurrant@amazon.com>
Fri, 7 Jul 2023 15:28:27 +0000 (16:28 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 7 Jul 2023 16:23:52 +0000 (17:23 +0100)
commitde91f06d2365645a8e94d9fe4f8a8c9a9b3d2fb8
treed62b8225310e4648793fe0e3cbc086748e5af4f8
parent0f8b4159b25e951c0ac78839fa087262b4602afa
Add more comments and ASSERTions in the cache allocator

It was clear from the thread at [1] that there is some confusion (including
my own) over the semantics of the slab list. Add some more comments and
ASSERTions to better explain.

Also turn a silly secondary 'if' into the 'else' clause it should have
always been.

[1] https://lists.xenproject.org/archives/html/win-pv-devel/2023-06/msg00002.html

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenbus/cache.c