Commit 9a89d96d authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[PATCH] Re: TRIVIAL: William Lee Irwin III: buddy system comment

parent 021ba6a0
...@@ -65,10 +65,13 @@ static int zone_balance_max[MAX_NR_ZONES] __initdata = { 255 , 255, 255, }; ...@@ -65,10 +65,13 @@ static int zone_balance_max[MAX_NR_ZONES] __initdata = { 255 , 255, 255, };
* at the bottom level available, and propagating the changes upward * at the bottom level available, and propagating the changes upward
* as necessary, plus some accounting needed to play nicely with other * as necessary, plus some accounting needed to play nicely with other
* parts of the VM system. * parts of the VM system.
* * At each level, we keep one bit for each pair of blocks, which
* TODO: give references to descriptions of buddy system allocators, * is set to 1 iff only one of the pair is allocated. So when we
* describe precisely the silly trick buddy allocators use to avoid * are allocating or freeing one, we can derive the state of the
* storing an extra bit, utilizing entry point information. * other. That is, if we allocate a small block, and both were
* free, the remainder of the region must be split into blocks.
* If a block is freed, and its buddy is also free, then this
* triggers coalescing into a block of larger size.
* *
* -- wli * -- wli
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment